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
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,095 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