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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

123 views 4 9
Read article

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