Scripting in Jira, how to set Assignee based on custom field value?

Hello All,

I would like to add a post-function script that will set an Assignee based on other custom field value.

For example: If "Location" = 'City_A', then set "Assignee" = 'Person_A'.


And here comes two questions:

  1. Is it possible to achieve that goal without paying for Script Runner plugin?
  2. I'm not a developer so I don't have expierence in scripting. How can I test such scripts before implementing them into production env?

2 answers

0 vote

There are alternatives to the script-runner, but they're all paid add-ons as well, for this level of flexibility.

You could bundle your code in to a simple post-function add-on though.  The Atlassian SDK that we'd recommend you use to build such add-ons includes really simple functions that will download, configure and run a dev system for you to do all your functional testing in.  (In fact, after you've created a basic project with one script and some questions, you can go from raw code to a test JIRA running with it installed by just saying "atlas-run")


And what about Scripting Suite and Jython scripts?

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

3,307 views 14 20
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