Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Add a custom attribute of type Contributor list to a work item programmatically (Java API)

Hello,
Please I need to know how to put a custom attribute of type Contributor list to a work item programmatically (via the Java Plain client API).
I am able to do it if the custom attribute is of type Small String:
IAttribute attribute = service.findAttribute(projectArea, "internalState", monitor);
workItem.setValue(attribute, "karim");

But I need to know how to do so if the custom attribute is of type Contributor list..
Thank you so much in advance.

0 votes



One answer

Permanent link

I have the same question. Have you discovered the solution since you originally posted this question?

I think your question could use some clarification though. Your title implies you are actually adding a new attribute to an existing work item, but your problem description implies that what you are actually trying to do is add a contributor to an existing contributor list attribute. Those are very different objectives.

I've done this successfully with the Subscribers list, but that seems to be a special built-in attribute. There is a function "getSubscriptions().add(contributor)". For a custom attribute of type "Contributor List", I would need an equivalent capability.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 30 '12, 10:47 a.m.

Question was seen: 5,760 times

Last updated: Jun 17 '15, 10:01 a.m.

Confirmation Cancel Confirm