Can I exclude the assignee in a User Picker custom field?

Basically, we have a set up now where we have a peer review field, but you can select the assignee of the ticket to peer review the code. we'd like to be able to not be able to choose the assignee as a potential peer reviewer.

4 answers

1 accepted

This widget could not be displayed.
A straight forward solution would be to write a Groovy validator which checks if the peer reviewer custom field value is different from the current assignee.This would have to be done in a transition that selects the peer reviewer. Of course the peer reviewer should not be on any edit screen so noone can bypass this business logic.

Another completely different but IMO interesting approach is to use the separation of duties condition provided by this plugin https://studio.plugins.atlassian.com/wiki/display/JMWE/JIRA+Misc+Workflow+Extensions+Documentation#JIRAMiscWorkflowExtensionsDocumentation-SeparationofDutiesCondition%28newin1.1%29 E.g. If you had two transitions "accepting development" and "review" you could make sure that transition "review" always has to be executed by a different user than "accepting development" thus assuring the 4 eyes principle.

This might also be an alternative if you don't want to start Groovy coding or you can't since you are on OnDemand. This platform provides the JMWE plugin but not Groovy

This widget could not be displayed.

I'm not sure I understood, but basically you want that other person than the assignee would be able to resolve an issue? If that's the case you can Grant or Deny Permissions on the Permission Scheme in every project.

I always recommend to configure the Permission Scheme with Roles or Group of users instead of users directly.

I think this question will be very helpful for you. Take a look at it, there are many solutions to a problem like this one.

It's more that we want to exclude the person assigned to the ticket from even being able to be selected as the peer reviewer.

Basically make it so there's no option to peer review their own code.

This widget could not be displayed.
A straight forward solution would be to write a Groovy validator which checks if the peer reviewer custom field value is different from the current assignee.This would have to be done in a transition that selects the peer reviewer. Of course the peer reviewer then should not be on any edit screen.

Another completely different but IMO interesting approach is to use the separation of duties condition provided by this plugin https://studio.plugins.atlassian.com/wiki/display/JMWE/JIRA+Misc+Workflow+Extensions+Documentation#JIRAMiscWorkflowExtensionsDocumentation-SeparationofDutiesCondition%28newin1.1%29 E.g. If you had two transitions "accepting development" and "review" you could make sure that transition review always has to be executed by a different user than "accepting development" thus assuring the 4 eyes principle.

This might also be an alternative if you don't want to start Groovy coding or you can't since you are on OnDemand. This platform provides the JMWE plugin but not Groovy

This widget could not be displayed.

How were you able to set up a peer reviewer field?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

286 views 5 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you