Delivery approval precondition for specific roles?
I've been able to set a precondition that a "Dev" role needs to approve a Delivery. Unfortunately, even someone who already has a Dev role still gets blocked from Delivery until they add themselves as an approver and changes the approval from Pending to Approved. That's kinda pointless. I need to have someone with a Dev role able to Deliver without needing Approval while someone with a Junior Dev role requires Approval from someone with a Dev role. Is it possible to set up a precondition that way?
Accepted answer
Mike, this question confuses me. You either want an approval or you don't. If you want a required approval with different roles for different roles, you could look into this blog that shows the code you would need to automatically create the approval: http://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ .
If you simply want the Junior Dev's to require an approval of a Dev role, but the Dev role does not need an approval, you should consider overwriting the operational behavior for the Dev role not to require an approval. This requires to select the role, in the row of work item save (server), check Preconditions and follow-up actions are configured for this operation. Now enter the behavior that should apply to the developers, leaving out the required approval.
Please carefully read https://jazz.net/library/article/292
Note, you can configure operational behavior at least for role, team, timeline, iteration, iteration type. As mentioned in the article above, the order of roles is important and operational behavior does not accumulate like permissions.
If you simply want the Junior Dev's to require an approval of a Dev role, but the Dev role does not need an approval, you should consider overwriting the operational behavior for the Dev role not to require an approval. This requires to select the role, in the row of work item save (server), check Preconditions and follow-up actions are configured for this operation. Now enter the behavior that should apply to the developers, leaving out the required approval.
Please carefully read https://jazz.net/library/article/292
Note, you can configure operational behavior at least for role, team, timeline, iteration, iteration type. As mentioned in the article above, the order of roles is important and operational behavior does not accumulate like permissions.