How can I get the URL from a Changeset on a Participant?
When a change set is accesed via web browser you have an url address with this format:
https://<jts-server>:9443/ccm/web/projects/<Project_Area_Name>#action=com.ibm.team.scm.viewChangeSet&contextItemId=&contextItemType=null&changeSetItemId=<UUID>
I have a Participant for sending notifications when a delivery is performed. I resolve the change sets with:
List<IChangeSet> changeSets = auditableServer.resolveAuditables(changeSetHandles, ItemProfile.<IChangeSet>createFullProfile(IChangeSet.ITEM_TYPE, true), monitor);
And I would like fetch the URL but I didn't find any method on IChangeSet or a Service to use for get this information. All I found is about WorkItem related artifacts associated.
How can I get the URL?
|
Accepted answer
Ralph Schoon (63.1k●3●36●46)
| answered Jul 21 '17, 9:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 21 '17, 9:11 a.m. The data usually does not provide a URL, you have to compute that. For any element, you can use .origin() to get the team repository and from that you can get the public URI e.g.
Fran Burgos selected this answer as the correct answer
Comments
Fran Burgos
commented Jul 25 '17, 6:31 a.m.
Finally I did with:
|
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.