Validate the "Implements Requirement" link in work item in Precondition
Accepted answer
here is a link to my custom precondition to enforce Depends On , the second post
https://jazz.net/forum/questions/64268/operation-advisor-custom-precondition-for-work-items
you should be able to tell if the workitem is the parent or child be the parent/child link
and then see if it has the implements link you are interested in.
you should be able to see both workitems at the same time (after following the link)..
but I have a question..
how can BOTH workitems 'Implement' the requirement? this is not logical to me.. if one does, then the other cannot.
https://jazz.net/forum/questions/64268/operation-advisor-custom-precondition-for-work-items
you should be able to tell if the workitem is the parent or child be the parent/child link
and then see if it has the implements link you are interested in.
you should be able to see both workitems at the same time (after following the link)..
but I have a question..
how can BOTH workitems 'Implement' the requirement? this is not logical to me.. if one does, then the other cannot.
Comments
Hi Sam,
I am able to detect that the Parent and Child have implements link. but I want to validate the requirement link in both the work items should be same.
How can achieve this using java api.
you have to get the object on the end of the link and compare the two.
my code here
https://jazz.net/forum/questions/94776/assertionfailedexception-problem-with-getting-the-values-of-attributes
has a set of methods to look thru all the links..
analyzeItem() is the one you want to look at for getting the item on theĀ end of the link