Is there a way to automatically assign code reviews once the change set is associated with a defect/workitem?
What we would like is to be able to write something that when a developer associates a change set to a workitem the system would automatically assign someone from a list of names to review that change but that review completion would not be required for deliver to the stream.
Is there a way to do this?
Accepted answer
Lisa,
short answer: yes. (but there is nothing out of the box to do this)
I am currently building a very similar thing. Unfortunately I am about to go on vacations for two weeks and cannot enlarge now.
Please google up Ralph Schoon Jazz in Flight blog (search for work item links) and also take a look at https://jazz.net/library/article/1000 as it is all in there. I will gladly share some ideas when I am back.
Where is that list of reviewer names stored? What do you plan to do when a change set is added to a work item that is already linked to another / already has a reviewer?
If you can describe the process behind your reviews a bit more I can give detailed advice.
- Arne
Comments
Thanks for the info Arne. I will take a look. I will see how far I can get and update this.
Arne,
there is doing the review and tracking the review process thru the use of Approvals. you are doing the latter?
I extended Ralph's approval injector plugin to take configuration records (in the process xml) which supports adding approvals at any workitem state transition for any one (user or role).
Lisa, after re-reading your question, as Arne mentions, the question is 'where is the list' of reviewers to assign to the approval record?.
we chose to create a role so that we could manage it rather than hard code their names.
Role= Reviewer
then my plugin creates the (Review type) approval record, when the workitem is transitioned to 'In Progress' state (cause they can't get out of 'In Progress' til the review is done).
my plugin, when creating/assigning approvals by role can do first, all, random, or balanced approaches.