Work item approval during delivery at the component level
2 answers
Comments
I tried that I had 3 components in the stream. Two of the components and the stream belonged to the team area that the approval precondition was enabled. the third component belonged to a different team team area but was still prompted for an approval when modifying this component
Sorry about this incorrect information. I mixed up the way permissions work and it's the stream owner that sets the advisors, not the component owner.
Comments
Is it possible to obtain the implementation details of the OOTB "Require Work Item Approval" precondition. To help develop a custom operations advisor based on a modified version of the precondition.
The modified version would require an approval only if there are changeset(s) in the delivery being delivered to component(s) that are not owned by the same team area as the stream.
Hi Emeka,
http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ shows an advisor that handles delivery. That should give you a skeleton that you can get started with. You can learn about how to create these kind of extensions and get your development environment set up using https://jazz.net/library/article/1000 .
Set up that way allows also to use the PDE (Eclipse Plugin Development Environment) to look into the SDK and find some of the code. In addition my blog has several other API examples that should allow you to figure if the work item has an approval.
Thanks that helps a lot