As many of you know Jira version 7.6 has schemes for the Priority field. Jira 7 features enabled by major version But what about the Jira Server that are not updated? We can do something? …. Yes, if we have Scriptrunner. We can use Behaviours! (here the documentation) Use this code: We can use it as initialiser and…
Read MoreCreate 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 MoreSolution for making second drop down required in cascading custom field
With Adaptavist Scriptrunner or MyGroovy plugins for Jira Server and a little groovy script we can validate/require or make mandatory the second drop down of a cascading field. Just create a Simple scripted validator in the transition! Example: Very easy! Example: By MrAddon
Read MoreNew groovy Listener to set the same fixversions to all subtasks in JIRA
Very easy!
Read MoreNew Listener to set a Custom Field when someone move a ticket to a target project
New JQL Function Custom to retrive issues with inactive user in assignee “HasInactiveAssignee” or in reporter “HasInactiveReporter” (Jira 6 and 7)
On {JIRA_GOME}/scripts/ create this folders: For example: ../jira_home/scripts/com/onresolve/jira/groovy/jql Then add the groovy file with the new JQLFunction, exmaple: HasInactiveAssignee.groovy The code: Then Go to Addons –> ScriptRunner –> Script JQL Functions –> and then press “Scan” Syntax: issueFunction in hasInactiveAssignee(‘project = XXX’) That’s all!
Read MoreHow to add new custom JQL Function with ScriptRunner
On {JIRA_GOME}/scripts/ create this folders: For example: ../jira_home/scripts/com/onresolve/jira/groovy/jql Then add the groovy file with the new JQLFunction, exmaple: ABC.groovy Then Go to Addons –> ScriptRunner –> Script JQL Functions –> and then press “Scan” That’s all!
Read MoreAutoincrement value of a custom field in a PostFunction Groovy ScriptRunner script
JIRA Service with Groovy ScriptRunner “Closing issues with status X with N days without updates” usign JQL
Issue Index Corrupted / Reindexing by Groovy ScriptRunner
Go to JIRA > Add-ons > Script Runner > Script Console Copy the script contents, replace “PUT_KEY_OF_ISSUE” and press Run This code correct problems with issues that don’t shows the status correct in views, etc.
Read More