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

Server Side Plugin : Restrict the closure of a Workitem when the Tracks Workitems are not closed.

Hi Team,


We are implementing a server side plugin where the requirement is as follows :
  • Change Request(CR) Workitem can be closed only when all the tracked WIs are in closed state.
  • Workitems which are in open state should not be allowed to link to Closed CR.
I know there existing a precondition that restricts the closure of the parent workitem when the children are not closed.
But here we want that Parent workitem is in one project area and Children workitems are in another project area.
and they are linked using the Contributes To - Tracks links.

Could you please share the article links and code snippets if any for this server side plugin. 

Thanks in Advance. 

0 votes



One answer

Permanent link

If you set up the SDK  for EWM, you should be able to find and access the code for the advisor you mention above.

I have published several advisors and participants on https://rsjazz.wordpress.com/ you can search for advisor/participant. There are examples how to follow OSLC links like tracks. 
Please note, that the deletion and creation of tracks links is not going to trigger a work item save operation ( other than work item links such as parent/child). So it is not possible to detect when a tracks/contributes to link is created (your second requirement).  

0 votes

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
× 7,498
× 1,328
× 1,221

Question asked: Jul 15 '24, 6:58 a.m.

Question was seen: 400 times

Last updated: Jul 15 '24, 9:38 a.m.

Related questions
Confirmation Cancel Confirm