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 votes

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 Sign up to answer
Community showcase
Posted Sep 18, 2018 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...

27,421 views 2 7
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