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

Identify Git Commits via Jazz Plain Api

Hello all,

I would like to list all Git commits linked to a work item.
With the following code I'm able to list links to work items as well as links to change sets, but I miss the linked git commits.

ILinkQueryPage workItemLinks2 = linkManager.findLinks(workItemRef, monitor);
            ILinkCollection links2 = workItemLinks2.getAllLinksFromHereOn();
            for(ILink l2 : links2){
                System.out.println("All Links: " + l2.getLinkTypeId() + ", ID: " + l2.getItemId());
            }

What do I have to do to list Git commits?

Many thanks in advance and kind regards,
Christine

0 votes


Accepted answer

Permanent link

I'd suggest to follow https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ and use the analyze references. There are various link types available, also as constants and you can try to find them this way. I have not found the constant so far.

Christine Makasy selected this answer as the correct answer

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
× 10,965
× 411
× 97

Question asked: Nov 30 '17, 5:02 a.m.

Question was seen: 2,326 times

Last updated: Nov 30 '17, 5:34 a.m.

Confirmation Cancel Confirm