Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Validate the "Implements Requirement" link in work item in Precondition

Hi All,

I am trying to validate the Parent and Child work item should have same requirement linked using Java API in precondition.

I am using Implements Requirement link type to link requirement from Doors in both child and parent work item.

Any help is much appreciated.

Thanks in advance.

0 votes


Accepted answer

Permanent link
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.
Parveen Patel selected this answer as the correct answer

0 votes

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

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,949

Question asked: May 18 '16, 6:52 a.m.

Question was seen: 1,729 times

Last updated: May 18 '16, 8:00 a.m.

Confirmation Cancel Confirm