It's all about the answers!

Ask a question

How does one determine if one work item links to another


Gaston Williams (81126) | asked Oct 06 '08, 3:43 p.m.
How can I figure out if one work item has a link that goes to another particular work item? For example if I have a handle to a work item, IWorkItemHandle, how can I determine if another work item has a link to the work item identifed by that handle?

I tried getting the endpoint of the links, but I wasn't sure how to compare them.

Thanks for your help,

Gaston

2 answers



permanent link
Gaston Williams (81126) | answered Oct 07 '08, 3:14 p.m.
Someone sent me a suggestion by email that was a big help to me.

For comparing two items handles there is a method getItemId() on IItemHandle which returns a UUID. If the two UUID's are equal, then the two handles point to the same item.

permanent link
Patrick Streule (4.9k21) | answered Oct 08 '08, 8:15 a.m.
JAZZ DEVELOPER
Someone sent me a suggestion by email that was a big help to me.

For comparing two items handles there is a method getItemId() on
IItemHandle which returns a UUID. If the two UUID's are equal, then
the two handles point to the same item.

There is also a convenience method for this:

handle.sameItemId(otherHandle);

Regards,
Patrick
Jazz Work Item Team

Your answer


Register or to post your answer.