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