Creation and deletion of RTC work item tags witn API
Hi everybody!
Could somebody help me with API for creation and deletion the tags in Rational Team Concert? Is it possible?
I'm wondering for any information about API both at the server side in a typical follow-up action extension and with REST API.
Thank you very much in advance for any recommendations and references!
Could somebody help me with API for creation and deletion the tags in Rational Team Concert? Is it possible?
I'm wondering for any information about API both at the server side in a typical follow-up action extension and with REST API.
Thank you very much in advance for any recommendations and references!
Accepted answer
For the Java API - regardless if client or server, it should work like this:
I have not tested the code, but it is analogue to several other cases. You would save the work item with the usual means e.g. using the operation pattern or work item save on client or server.
IWorkItem workItem = workingCopy.getWorkItem(); ListIn the REST API I would expect you have to just add a new tag to the list and save the resource with all the data.tags = workItem.getTags2(); tags.add("NewTag"); workItem.setTags2(tags);
I have not tested the code, but it is analogue to several other cases. You would save the work item with the usual means e.g. using the operation pattern or work item save on client or server.