Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,706
Community Members
 
Community Events
168
Community Groups

Can someone help me create a script so that Assignee cannot be the same user as the User Picker?

I'm using a User Picker one of my projects and at any point of the workflow, I do not want the Assignee to be the same user as the user in the User Picker field I have.  I have no idea how to start a script like this and I'm hoping someone would be so kind to share or show me how to develop a script for this.

1 answer

0 votes

Hi,

Can you provide some extra info:

  • Is the User Picker field on the Edit screen, in other words can it be changed with an issue update or only in a transition?
  • Same question for the assignee.

I am asking because if you want to do this kind of validation, you would have to have a "trigger" event for the validation BEFORE the issue is updated.

The update of one of these fields can not be the trigger because by then the value would already have been changed, in other words the validation would be too late.

You can do the validation when these fields are updated in transitions. 

 

Regards,

Jeroen

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

196 views 1 6
Read article

Atlassian Community Events