How to automatically assign ticket to user based on the Location of the ticket in JIRA?

Our IT dept need to assign service desk tickets to user based on ticket Location. Is there any way to do that? Someone suggest to use ScriptRunner, but I cannot find any solution. 

Appreciated if you could let me know!

2 answers

Have a look at the answer in which shows how to set an assignee from ScripteRunner. You will need to change the line

if (user != null)

to match your requirement for a location based entry.


Hope this helps point you in the right direction.



i am PM not developer, but I need get this feature done. Thanks Phill's feedback, but I still don't know from where I can add the post function script. 

Please let me know which of following script I need to choose?

Thanks ahead for guiding in wink

Click on a script and add parameters. For running your own code select Custom script post-function.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,445 views 15 19
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