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

This widget could not be displayed.

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.



This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

204 views 1 3
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