• 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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

727 views 6 13
Read article

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