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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
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