how to get link to a fileitem in ALM RTC if i have itemid/iversionable/ifilitem
how to get link to a fileitem in ALM RTC if i have itemid/iversionable/ifilitem
One answer
stateIdUUID);
criteria.setItem(nvh);
Comments
Only problem with this is it finds all change sets that touch the file, but based on the previous questions from Akshay, it sounds like a specific file state is requested, in which this approach will not work directly. But I suppose you could fetch all the change sets, then go through the changes of each change set to find the file you one, then check if the stateID matches what you are looking for. Then that would give you 'one' change set that has the fileState (keep in mind there could be multiple change sets in the repo that have the fileState [ex: one could be delivered to a main stream, and the other change set could be delivered to a maintenance stream). Note: This approach would be pretty expensive to do, so hopefully this is not an action that is performed often.
thanks a lot steven sir and david sir
@David, can you please give me format for scm queries for finding changset and streams
Comments
David Lafreniere
FORUM MODERATOR / JAZZ DEVELOPER Feb 26 '19, 9:35 a.m.Can you navigate the current RTC SCM Web UI and provide an example of the type of link you are looking for?
akshay p
Feb 28 '19, 1:56 a.m.https://xyz#action=com.ibm.team.scm.browseElement&workspaceItemId=_efg&componentItemId=_abc&itemType=com.ibm.team.filesystem.FileItem&itemId=_mnp
David Lafreniere
FORUM MODERATOR / JAZZ DEVELOPER Feb 28 '19, 9:48 a.m.We just generate the URL in Javascript code, so there's no API or way to re-use it.
Fortunately, now that you know the format you can write your own code to build up the URL (and just replace the itemIds where necessary)
akshay p
Mar 01 '19, 12:28 a.m.atleast can i find the stream ids/snapshot ids where this file belongs to?
akshay p
Mar 01 '19, 12:29 a.m.i know the format but i really need snapshot/stream ids mandatory to build a link to file item
akshay p
Mar 01 '19, 12:29 a.m.please advise
David Lafreniere
FORUM MODERATOR / JAZZ DEVELOPER Mar 01 '19, 12:44 p.m.