Install the Thready app to make sure that your threads have a meaningful name.
Then use the following scripts :
https://bitbucket.org/atlassianlabs/atlassian-support/src/master/
Install the Thready app to make sure that your threads have a meaningful name.
Then use the following scripts :
https://bitbucket.org/atlassianlabs/atlassian-support/src/master/
snippet of code to use the output logs in ScriptRunner Adaptavist groovy scripts
| tool | ScriptRunner for JIRA |
|---|---|
| version | 8.1.1 |
| use case | log.debug SR script |
/***********/import org.apache.log4j.Loggerimport org.apache.log4j.Level def log = Logger.getLogger("com.scriptname")log.setLevel(Level.DEBUG)/***********/ //and then, for example to print the variable tremlog.debug "trem=${trem}"
|
example :