It's all about the answers!

Ask a question

How to get the URL of an item in a change set by JavaAPI or JavaPlugin?


Kodac Hasubo (363) | asked May 25, 7:39 a.m.
How to get the URL of an item in a change set by JavaAPI or JavaPlugin?

 I looked for IChangeset's Method.


but I couldn't get the URL of the item. 

How can I get the URL of an item?


Comments
Ralph Schoon commented May 25, 9:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I don't know. I have looked relatively deep into the APIs Why would you want to do all these things, what is the purpose and business need? 


Ralph Schoon commented May 25, 9:17 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 For IItemHandles you can use com.ibm.team.repository.common.Location;


I have published https://github.com/jazz-community/ewm-scm-utils and the command 

com.ibm.js.team.supporttools.scmutils.commands.UploadToStream uses 
com.ibm.js.team.supporttools.scmutils.utils.URIUtil

to create the URI's for some SCM related items. The source code can be found in the git repo above. The method id com.ibm.js.team.supporttools.scmutils.utils.URIUtil.getURIForItem(IItemHandle)


Kodac Hasubo commented May 25, 7:09 p.m.

 Thank you for your comment. 


Keeps the URL in the work item's text field.

There is a request to jump to the item by clicking on the link directly from the work item.

Creating links from work items to change sets. You can jump from a changeset to an item. 
However, it takes a lot of effort to click twice. 
That's why it's a request to jump to an item with a single click.

Be the first one to answer this question!


Register or to post your answer.