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

How to create an attribute in an work item using serverside plugins or using OSLC.

 Hii,


I had a work item now I need to add an attribute to that workitem which not already present i.e through programetically I need to create an attribute id and I need to add it to the work item, is this requirement is possible or not with server side plugin or by using OSLC, if possible kindly let me know.

Thank you,
Regards,
Pavanm.

0 votes


Accepted answer

Permanent link

There is no documented API available for that (that I would be aware of) and I do not see any reason why there should be one. I have been looking into this for entertainment reasons and gave up on it. I think the RTC CQ connector has some code built in to do it, but I am not sure and it is probably not public API anyway.


So, please edit the process configuration and add the attribute as everyone else does. OSLC does not provide any mechanisms to customize the process either.

Pavan M selected this answer as the correct answer

0 votes

Comments

Tnq Ralph this is a req we got, client required conformation so we posted  here. Tnq for your Support. 

com.ibm.team.workitem.common.model.IWorkItem.addCustomAttribute(IAttribute)  can add an existing attribute, if that is the intent. Use com.ibm.team.workitem.common.model.IWorkItem.hasAttribute(IAttribute) to test if the attribute is already there.

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: Apr 20 '21, 2:29 a.m.

Question was seen: 727 times

Last updated: Apr 20 '21, 4:07 a.m.

Confirmation Cancel Confirm