This is the example code for a PostFunction to transition a linked Issue in status X to another status of the workflow. Very easy with Adaptavist Scriptrunner. See this code.
Here the sample code to add a fixed watcher on the create issue transition of a Workflow. Very easy and useful script! This is a script PostFunction of the Adaptavist Groovy ScriptRunner Atlassian JIRA Plugin. You can add, for example, a user linked to an email of a distribution list.
Very easy with Scriptrunner plugin! Go to "Cog Icon-->Add-ons-->SCRIPTRUNNER-->Script Fragments" Add a Hide option and insert these parameters. NOTE 1: Remember, the option must return "false" to hide the option. NOTE 2: replace "KAN" for the Key of the project you want to apply
With ScriptRunner is very easy! IMPORTANT NOTE: YOUR JIRA INSTANCE MUST BE A NON-PRODUCTION SERVER Go to "Cog icon-->Add-ons-->SCRIPTRUNNER-->Script Fragments-->Click in "enable" phrase" You will see then the "debug" mode... (more info)
This example show a button in the "More" option of the issue tickets called "Approve this issue". This button call a Scriptrunner REST custom Endpoint and returns a "flag" Object to be shown as alert in the ticket. First go to "Add-ons-> Scriptrunner --> REST Endpoints" and add this script: Then save the REST Endpoint. … Continue reading JIRA Scriptrunner REST Endpoint & Web Fragment example
New custom JQL function for JIRA 7.x to filter the TOP ROWS of a Query! Very useful! By default filters the TOP 10 rows. The JQL function is writed in Groovy and deployed with Adaptavist Scriptrunner. Syntax example: (to extract the top 20 rows of a project called JIRA) issuefunction in TopRows( "project = JIRA ORDER … Continue reading TopRows JQL Function for JIRA 7.2 + Scriptrunner
Do you remember the old post LasCommentContains: New JQL custom function in groovy? With JIRA 7.2 and the new Adaptavist Scriptrunner, the JQL function must be rewrited to work properly. Because after the JIRA migration from JIRA 6.3 to JIRA 7.2 changes a lot of very common classes, etc. You can see the usual changes in … Continue reading LastCommentContains JQL Function for JIRA 7.2 + Scriptrunner
As many of you know, to get the "required" & "reported" hours of a Tempo Timesheet Team (in JIRA), don't exists a REST Web Service interface to get these values... But, exist and "old" "hack"-trick to do this using the mystical "CURL" (in this example case calling cull in the bash shell, running the process inside … Continue reading How to get the required team hours from JIRA Tempo plugin with groovy