Book Image

JIRA 6.x Administration Cookbook

By : Patrick Li
Book Image

JIRA 6.x Administration Cookbook

By: Patrick Li

Overview of this book

Table of Contents (16 chapters)
JIRA 6.x Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running scripts in JIRA


JIRA provides an API 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 overkill to create a full-blown add-on for what may seem like a simple task. The good news is there is an option for you to write or program scripts which 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 script in JIRA...