Migrating Groovy scripts from JIRA 6 to JIRA 7

Some examples of the "resyntax" conversion in Groovy with explicit option. See the entire API changes list here JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA 6 JIRA 7 JIRA … Continue reading Migrating Groovy scripts from JIRA 6 to JIRA 7

Advertisements

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

How to create a Custom Field calculated in JIRA with JIRA MISC addon

To create a new custom field calculated, we can use the addon of JIRA "JIRA Misc Custom Fields". The plugin can be downloaded from: https://marketplace.atlassian.com/plugins/com.innovalog.jmcf.jira-misc-custom-fields/server/overview Example of Custom Field that sum two different Custom Fields: 1.- Go to create new Custom Field. Select Type "Calculated Number Field" 2.- In the "description" of the new customfield set … Continue reading How to create a Custom Field calculated in JIRA with JIRA MISC addon

Changing Custom Fields Types in JIRA

Certain fields can be safely upgraded, such as Version and Select lists to their multiple values counterpart. You can change the "customfieldtypekey" in the "customfield" table to whatever you need it to be. The table below lists the keys for commonly changed fields. Custom Field Type Type Key Single Version com.atlassian.jira.plugin.system.customfieldtypes:version Multi Version com.atlassian.jira.plugin.system.customfieldtypes:multiversion Single … Continue reading Changing Custom Fields Types in JIRA