It's all about the answers!

Ask a question

Remove git commit links from a work item in RTC


Namrata B (214) | asked Oct 07 '21, 8:21 a.m.
Hi,
 Can anyone please tell me what are the steps or how can we remove the git commit links from workitems in RTC using java APIs?
Thanks for help.

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Oct 12 '21, 4:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 In general https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ explains how the API works. You would have to get the reference collection, identify and remove the GIT links from the collection and then save the work item. 


I was however unable to find the GIT link type. I think it is defined in a jar file that is shipped with the RTC Eclipse client, but I do not know which. I have asked a colleague to help, if possible.


Comments
Ralph Schoon commented Oct 12 '21, 10:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The GIT link types are in  com.ibm.team.git.common.GitLinkTypes which is in the  com.ibm.team.git.common_*.jar where * represents a version number.



Your answer


Register or 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.