New Groovy PostFunction Transition Linked Issue in STATUS X

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.

Advertisements

New Groovy PostFunction: Add fixed watcher on create issue transition

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.

How to remove the CLONE option in JIRA Projects

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

Calculate the SLA with Scripted Field in ScriptRunner for JIRA

Very easy! Create the required TimeStamps custom fields to fill with a Listener or a PostFunction with Groovy Scriptrunner with a CODE like this Then create a Groovy Scripted Field in JIRA to calculate the SLA (ANS in spanish). You can follow this instructions to create the HTML field Put a code like THIS: That's … Continue reading Calculate the SLA with Scripted Field in ScriptRunner for JIRA

How to set format to the value of a Custom Field calculated in JIRA with JIRA MISC addon

Very easy, first see this instructions to create the Custom Field To remove the decimal part of the resulting number from a division of two custom fields for example, and for adding the final character "%", you can try to set in the "description" of the custom field (of type "Calculated Number"... for example) a … Continue reading How to set format to the value of a Custom Field calculated in JIRA with JIRA MISC addon

How to create a Custom URL field with title in JIRA

Very easy with Adaptavist Scriptrunner / Groovy Scriptrunner Create a new field of type "Script Field Scriptrunner" Then go to "cog icon" --> Add-ons --> SCRIPTRUNNER --> Script Fields Select "Template" HTML Then in the script line add a code like this: NOTE: You can avoid a lot of lines of my code, it's only … Continue reading How to create a Custom URL field with title in JIRA

How to create a new JIRA Scripted Custom Field obtaining LDAP attributes

Very simple! Download the plugin Kepler Custom Fields Create a SIL Script Custom Field In the custom field configuration set a new script like this: return ldapUserRecord("attribute", "", "", "", "user@example.com", "user"); Remember to configure the LDAP connection Go to "Cog icon" --> Addons --> KEPLER --> LDAP Configuration URL = ldap://localhost:389 BIND USER = … Continue reading How to create a new JIRA Scripted Custom Field obtaining LDAP attributes