ScriptRunner for Jira – Script Fields trick to use Common Classes

For a large scripts exist a trick to reduce the complexity of the Script Fields if you use classes that can be “common” and reused between other Script Fields. For example, imagine we want to create a Script field that show a report HTML inside the tickets with the Lean metrics. Something like this: And…

Read More

Create sub-task with specific label with Scriptrunner and Jira Server

Usually we want to create automatically subtasks in a transition and sometimes with a specific label. We use usually the plugin Adaptavist Scriptrunner in Jira Server to do tasks like this. Just creating a Postfunction in the Workflow. We can use the “Create Sub-task” script Postfunction with the usual parameters…   In the “additional issue…

Read More

JQL Trick: How to search for labels with a wildcard expression in Jira Server

If your company has installed Adaptavist Scriptrunner you are in luck! You are available to do a search for labels using a wildcard expression using JQL You can use the JQL function issueFieldMatch Example of usage: issueFunction in issueFieldMatch(“project = JRA”, “labels”, “ie[8|9]”) This will search for tickets with “ie8” and “ie9” labels issueFunction in…

Read More

How to remove Jira customfields in bulk with a Groovy script

IMPORTANT NOTE: This script removes permanently a subset of customfields of your Jira. Before launch this script, we STRONGLY recommend to create a backup (following the Atlassian instructions). MrAddon is not responsible of the bad use of this script, the data removed, or some consequence derived. This script removes permanently the Jira customfields that start…

Read More

No permission scheme is associated with project ‘XXXX’ (QuickFix for Jira with Groovy script)

If your Jira server log is reporting this error: No permission scheme is associated with project ‘XXXX’ Try to launch a Groovy script like this to fix the error. Remember to set the PROJECT_KEY of the project affected, and a PERMISSION_SCHEME existent in your Jira. We recommed to use plugins like Adaptavist Scriptrunner or MyGroovy…

Read More