When delivering how can I require that A certain workitem type is being used and it is in a certain state?
I am using RTC 6.0.5 with the SCRUM template.
I have been asked to allow deliveries to happen only if the following is true:
1) Must be associated with a work item either new or existing.
2) The work item type is Story or Task
3) The task is in an active state (for example: New or In Progress for a Task work item)
4) It is for the current sprint.
I believe that I do this some how in the Project or Team configuration Operation Behavior but I cannot see how to enforced these pre conditions for a delivery action.
Thanx in advance for the help
Accepted answer
You should be able to use the built-in conditions:
Require-Work-Items-and-Comments for (1) and (4)
Require-Work-Items-To-Match-Query for (2) and (3)
Comments
One other answer
You have to create your own custom advisor similar to this one.
https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/
You would have to have additional checks for the work item that is linked.
The built in precondition does not check for the work item type.