¿How to store and access configuration data in Jira for Groovy Scripts?

1. Place a file with name credentials.properties Under <script_root> : app.url=http://example.com app.user=myuser app.password=secret 2. Create an Accessor class in <script_root>/mycompany/MyCompanyProperties.groovy: package mycompany import com.onresolve.scriptrunner.runner.ScriptRunner import com.onresolve.scriptrunner.runner.ScriptRunnerImpl import java.nio.file.Files import java.io.File import groovy.util.logging.Log4j @Singleton @Log4j public class MyCompanyProperties {     final String configFileName = ‘credentials.properties’     public Properties getProperties() {         def scriptRoots = ScriptRunnerImpl.getPluginComponent(ScriptRunner).getRootsForDisplay()?.split(“, “)?.toList()…

Read More

How to avoid to log work in Jira Epics

Disable “Log work” on Epics in Jira is possible and it’s very easy, here the instructions: Create a Workflow only for the Epic In all statuses/steps of the workflow add this property: jira.permission.work.denied  Assign the Workflow to the Workflow Scheme of the target project and assign to the issue type Epic ( Remember to publish…

Read More

Workflow properties

jira.field.resolution.exclude Resolution id Add comma-separated resolution ids to the transition properties where you want to not show certain resolutions jira.field.resolution.include Resolution id Add comma-separated resolution ids to the transition properties jira.i18n.submit i18n property key Transition (usage: action submit button name) jira.i18n.title i18n property key Transition (usage: action name, etc.) jira.issue.editable true, false Configuring Workflow Step jira.permission.*…

Read More