How to block work item link from being removed on specific state?
Hi All,
I have written an operation advisor which will validate work item links on specific state.
Now I need to block the work item link from being removed from work item on closed state.
Is there any way to do this using API?
Consider the below scenario where advisor does not prevent work item save operation:
1. We have “Task” work item and we are moving task work item from New to In progress state, our precondition will check the parent link and if not present show the error message to add Parent work item.
2. When work item is moving from In progress to Closed state ,if we select action remove parent reference and click save button then it will get saved and parent work item link will get removed from the child work item, because while moving to closed state parent link is present so precondition get matched, after saving it will get removed.
Any help is much appreciated.
Thanks in advance.