Item references point always to a workitem?
Hi,
I want to find out whether an "IReference" is pointing to a workitem.
Is it correct that if an IReference (whose link type is one of the work item link types like contributes, mentions, ...) is an ItemReference it always points to a workitem?
What about mentions links? Since it can point to multiple targets when does a mentions reference return true when asking it if it is an itemreference?
Thank you
Accepted answer
No, the reference is not always a work item. That depends on the link type. It could also be a change set or a URI.
See https://rsjazz.wordpress.com/2014/12/03/creating-custom-link-types-for-rational-team-concert/ and https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ for more information.
You have to basically check what you get. See the analyze references section in the second post.
See https://rsjazz.wordpress.com/2014/12/03/creating-custom-link-types-for-rational-team-concert/ and https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ for more information.
You have to basically check what you get. See the analyze references section in the second post.