Running scripts in JIRA
JIRA provides an add-on framework for people with programming skills to create add-ons to extend its features, or to perform tasks that would otherwise be impossible or tedious. However, even with that, it is sometimes an overkill to create a full-blown add-on for what may seem like a simple task. The good news is that there is an option for you to write or program scripts that can take advantage of what the API offers while not having the burden of a full add-on development.
In this recipe, we will create a Groovy script that will share a number of search filters by adding them as favorites for everyone in JIRA—a task that would otherwise take a lot of time if done manually.
Getting ready
For this recipe, we need to have the Script Runner add-on installed. You can download it from the following link and install it with the UPM:
https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner
How to do it...
Perform the following steps to run a custom Groovy...