Programmatically resolving tracks/contributes links does not work
Hi,
I have problems getting linked work items (tracks/contributes) using the Java API. My code roughly looks like this:
// Resolve all work item references for the given item
I can get all the work item reference objects. But when calling the resolve() method it always returns null.
The reference objects are URI references with this URI format: https://....com:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/9749
What I found out is that Location.locationFromAbsUri(URI) is called where the ItemHandle in the Location instance is set to null.
IItemHandle itemHandle = null;
Any Idea why it does not work?
|
Accepted answer
Marko,
will the code in this post to turn the URI into a WorkItem handle help? If you can send me the code to business mail I can look over it, but not before next Monday. gg, Arne Marko Tomljenovic selected this answer as the correct answer
Comments Marko,
|
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.
Comments
Using your referenced code helps. It works now.