Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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


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. 




Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

172 views 2 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you