It's all about the answers!

Ask a question

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


Shwetha G (266710) | asked Jul 15, 6:58 a.m.

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. 

One answer



permanent link
Ralph Schoon (63.6k33646) | answered Jul 15, 9:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 15, 9:38 a.m.

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).  

Your answer


Register or 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.