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 https://answers.atlassian.com/questions/258150 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.

 

Phill

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 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 ...

2,739 views 11 18
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