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

Is it possible to create a link to a file for a specific item id plus state?

Is it possible to create a link to a file for a specific item id plus state?

 

Currently we can create a link in alm for a file/item id.

 

Can we add extra parameter &stateId= and create a link

 

For example : i have an item a.c in state (2)/version 2. I can only view the latest file that is version 2 in alm browser link.

 

is it possible to view version 1 by adding state id as additioonal parameter in the above link.

 

 

We also tried to do that however, no matter what we give as state, it alwys redirects to latest version of the file.

 

below is the link to a file i.e. a.c version 2

....#action=com.ibm.team.scm.browseElement&workspaceItemId=__tJbwL5UEemfxMTXV99IQA&componentItemId=__uyagr5UEemfxMTXV99IQA&itemType=com.ibm.team.filesystem.FileItem&itemId=_IK3O8L5VEem7SNNawz5Oxg

 

if i add a state id as a suffix with state as (1) or (2), it is making no difference

....#action=com.ibm.team.scm.browseElement&workspaceItemId=__tJbwL5UEemfxMTXV99IQA&componentItemId=__uyagr5UEemfxMTXV99IQA&itemType=com.ibm.team.filesystem.FileItem&itemId=_IK3O8L5VEem7SNNawz5Oxg&StateId=abc

....#action=com.ibm.team.scm.browseElement&workspaceItemId=__tJbwL5UEemfxMTXV99IQA&componentItemId=__uyagr5UEemfxMTXV99IQA&itemType=com.ibm.team.filesystem.FileItem&itemId=_IK3O8L5VEem7SNNawz5Oxg&StateId=xyz

 

it will always redirect to ....#action=com.ibm.team.scm.browseElement&workspaceItemId=__tJbwL5UEemfxMTXV99IQA&componentItemId=__uyagr5UEemfxMTXV99IQA&itemType=com.ibm.team.filesystem.FileItem&itemId=_IK3O8L5VEem7SNNawz5Oxg

0 votes


Accepted answer

Permanent link
Try this URL and see if it does what you want:

https://<YOUR_JAZZ_HOST>:9443/jazz/web/projects/ProjectA#action=com.ibm.team.scm.viewChangeSetItem&componentItemId=<COMPONENT_UUID>&itemType=com.ibm.team.filesystem.FileItem&itemId=<FILE_UUID>&stateId=<FILE_STATE_UUID>

akshay p selected this answer as the correct answer

0 votes

Comments

Thank you for the response, this is working ..


One other answer

Permanent link
If the version you want is in a snapshot, then you can create a link to that version, with a URL like:

0 votes

Comments
In Snapshot, as usually only one version of a file will be present, it does not make a difference.Even if we add an extra parameter state id in front of snapshot or stream, it is not making a difference.
For example :
...#action=com.ibm.team.scm.browseElement&snapshotItemId=_CcmutsJSEemfxMTXV99IQA&componentItemId=_Ptr1IsJQEemfxMTXV99IQA&itemType=com.ibm.team.filesystem.FileItem&itemId=_n5i8MMJQEemb6aHkLDp4cg&stateId=_rFCn1cJQEemfxMTXV99IQA
       
       ...#action=com.ibm.team.scm.browseElement&snapshotItemId=_CcmutsJSEemfxMTXV99IQA&componentItemId=_Ptr1IsJQEemfxMTXV99IQA&itemType=com.ibm.team.filesystem.FileItem&itemId=_n5i8MMJQEemb6aHkLDp4cg&stateId=_AbMGBMJREemfxMTXV99IQA
Here state id are different , but when we click it will always point to a same file present in Snapshot.

Same for streams and snapshots, link always point to a latest version of the file and does not get affected if we add state id as a parameter.


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,927

Question asked: Aug 16 '19, 5:36 a.m.

Question was seen: 1,337 times

Last updated: Aug 20 '19, 11:07 a.m.

Confirmation Cancel Confirm