How to extent Require workitem approval to select what kind should be approval?
I use this precondition: Require work item approval while deliver, but I have a requirement that not all types of work item are required to approval ,so I want to add new precondition or extent current :Require work item approval.
Could some one give me some guideline how to do it?
Thanks in advance!
Could some one give me some guideline how to do it?
Thanks in advance!
2 answers
Hi Julie,
The easiest way to customize approvals is to require approvals when transitioning from one state of a work item to another. This option will not restrict deliveries but could restrict if a work item can be resolved. To do this, in the Team Artifacts view in the Eclipse client, right-click on your project area and select Open. Then expand Team Configuration > Operation Behavior. In the Operations table, scroll to the Work Items section and select Save Work Item. Here you can add the Required Approvals precondition and configure it for each work item type and state.
If you want to require approvals for deliveries, I'm not aware of a way to customize or extend the existing precondition. I think you will need to write your own custom precondition. https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation has information on writing preconditions.
The easiest way to customize approvals is to require approvals when transitioning from one state of a work item to another. This option will not restrict deliveries but could restrict if a work item can be resolved. To do this, in the Team Artifacts view in the Eclipse client, right-click on your project area and select Open. Then expand Team Configuration > Operation Behavior. In the Operations table, scroll to the Work Items section and select Save Work Item. Here you can add the Required Approvals precondition and configure it for each work item type and state.
If you want to require approvals for deliveries, I'm not aware of a way to customize or extend the existing precondition. I think you will need to write your own custom precondition. https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation has information on writing preconditions.