¿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

Introducing the third member of the MrAddon team! The Triforce with the amazing Sebastien Fouache!

At MrAddon we are very proud to be able to count on the invaluable collaboration of Sebastien Fouache Entrepreneur in startups and passionate about the collaborative economy, is also located on the digital transformation of companies and improvement processes in work teams. Mentor and partner in several Spanish startups, Sebastien has developed the business of…

Read More