It's all about the answers!

Ask a question

Ristrict change of state of work item based on state of another work item state

Tanveer Zubair (211213) | asked Jan 24 '20, 11:15 a.m.
Example:  I have a work item A12345, I would not be able to change of it's state to "Ready for Deployment" if another work item B12345 is not on a specific state.


One answer

permanent link
Ralph Schoon (63.2k33646) | answered Jan 24 '20, 11:18 a.m.

You would have to write a custom work item save advisor. Some advisor examples:

Tanveer Zubair commented Jan 24 '20, 11:31 a.m. | edited Jan 27 '20, 2:28 a.m.
   Thanks for your quick reply.
 Do you have any specific example for it.  I am not familiar of custom work item advisor.   Thanks

Ralph Schoon commented Jan 27 '20, 2:30 a.m. | edited Jan 27 '20, 3:38 a.m.

The blue thing in my answer is called a link. I would suggest following it to the examples. is a very simple example of an advisor that prevents work item state changes. You will have to do more in your advisor. You will have to locate the other work item and its state. How you can do that, depends on your special requirements. There are examples for these APIS on the blog as well. The blog features a search capability and tags that you can use to locate these posts. If you use links between the work items search for link-api or links. One of my very first blogs is around parent child links in an follow up action (aka participant, which is very similar to an advisor).

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.