• Community
  • Products
  • Jira
  • Questions
  • Upon creation, how can the issue be automatically assigned to the reporter only if an assignee isn't chosen first.

Upon creation, how can the issue be automatically assigned to the reporter only if an assignee isn't chosen first.

I'd like to be able to choose the assignee when creating an issue but if I forget to do so, I'd like it to default to me. I see that there are post functions that allow me to assign to myself or to the reporter upon creation but when I use those, it will override the assignee field if one was chosen initially. 

3 answers

One simple way to do this without having to write your own code is to set yourself as the automatic assignee on the project. Of course, that only works if you (and whoever else uses your project) don't mind you being the assignee for any issue in that project where the creator does not pick an assignee when creating the issue.

Same idea works for specific components in your project - you can make yourself the component lead and set the auto-assign to go to the component lead, not the project lead. Again, that all depends on how you and your team use components.

Hi @Randall Robertson, 

Thanks for your reply. It's actually that I want the issue to be assigned to the person creating the issue (certainly not always me smile) if and only if another person isn't already selected as the assignee upon creation. We may have use for defaulting it to the component lead - but that would still be if and only if another person isn't already selected first. It sounds like that would need to be a custom script ?

Thanks,

Jillian 

There are some plugins that allow for conditional Post-Functions. If you can get one of those installed, you may be able to check the assignee field to see if it is blank and then assign it to the reporter if it is. Otherwise, yes, you will probably need a custom script.

Update issues post function with conditioning on the assignee field not having a value. See How to condition on a field being blank or empty for instance. See also: How to update issues after initial issue create

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot