JIRA Service with Groovy ScriptRunner “Closing issues with status X with N days without updates” usign JQL compatible with JIRA 7
New Listener change status of an issue depends of the type of the issue created in JIRA
New Listener assign issue depends of the issue type in JIRA
Clone or Copy a JIRA Project configuration with Groovy ScriptRunner (With or without issues)
It’s easy, only you need go to “Add-ons” and then to “Built-in Scripts–> Copy Project” Then only fill the form to clone or copy the configuration of a source project.
Read MorePostFunction to set Date-Time custom field with Groovy Script Runner
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
Listener “When Moved tickets to the target Project, assign new project leader and new initial status” with Groovy ScriptRunner
JIRA Service with Groovy ScriptRunner “Closing issues with status X with N days without updates” usign JQL
PHP Scripts with JIRA REST API
Searching for issues We can use the search API available at http://example.com/rest/api/2/search with the JQL “created > -1d”. <?php //pull in login credentials and CURL access function require_once(“utils.php”); //create a payload that we can then pass to JIRA with JSON $jql = array( ‘jql’ => ‘created > -1d’ ); /*define a function that calls the…
Read More