This article is for Data Center. Visit Cloud
ScriptRunner
ScriptRunner is an app by Adaptavist which allows the use of Groovy scripts to automate workflows, update fields and perform other actions in Jira. It also allows users to expand functionality of other apps–including Structure--using their APIs.
In the following pages, we have assembled some popular use-cases of Structure and ScriptRunner working together, along with links to the appropriate scripts in the Adaptavist Library.
Script Library
- Bulk Change Owners of Structures and Generators — Bulk change the owner of structures from one user to another. This can be useful when one user account is being archived/removed and their structures need to be preserved.
- Creating a New Structure Programmatically — Create a new structure.
- Creating Generators — Create new Insert, Extend, Sort, and Filter generators in a structure.
- Export to Excel Using ScriptRunner — Export a structure to Excel.
- Run all effectors by schedule — Periodically run all Effectors in a defined structure.
- Show All Structure Boards and Corresponding Item Counts — Display a list of structures which exist in the instance and how many items were added to them manually. The results will be shown below the console.
- Show Related Issues in a Separate Column — Show all the issues that are linked through any issue link type.
- Show work logged per user and issue for a structure — Create a table showing users, each issue they logged work on, and how many hours were logged for each particular issue.
- Updating a field (ex. label) when checking all issues against a JQL query — Update a field for all issues that pass a certain JQL query.
- Archive Structures Owned by Inactive Users — Identify inactive users and archive their structures.
- Archive Structures That Haven’t Been Accessed in 3 Months — Identify structures that have not been accessed in at least 3 months, and archive them.
- List Structures That Haven’t Been Accessed in 3 Months without Archiving Them — Identify structures that have not been accessed in at least 3 months, and list them.
- See Details for Inactive Structures — Lists structure names that weren't accessed for 6 months, its owner, and last opened value.
- Delete Archived Structures — Clean up archived structures.
- List Structure Names and Permissions
- List All Saved Views — Lists all views available on the instance.
- Automatically Remove Issues Based on JQL Query — Remove issues that do not satisfy a certain JQL query from a specific manually-built structure.