Hello,
I have adaptivist ScriptRunner and would like to use "Escalation Service". I noticed that when I started testing, I was not receiving output from the logger in 'atlassian-jira.log'. So I simplified my script to just change the summary, and then log output the string "bannanas" to the log file. When I clicked on "Run Now", I see that the summary for the issues returned from the JQL were changed, but I still did not see "bannanas" in my `atlassian-jira.log` file. Do the logs print somewhere else? Here is my script:
import org.apache.log4j.Level
import org.apache.log4j.Logger
def myLog = Logger.getLogger("com.onresolve.jira.groovy")
myLog.setLevel(Level.DEBUG)
issueInputParameters.setSummary('bannanna')
issueInputParameters.setSkipScreenCheck(true)
myLog.debug("bannanas....")
I have see logging work behavior, post-function, and validator scripts. I am surprised they aren't working for escalation service scripts.
I've tried your exact example and it works.
Keep in mind that all the additional issue action code is executed before the updates are performed. So the log line you are looking for could have scrolled past pretty quick.
So in the case, the order of operations are:
Hi Peter-Dave,
I've discovered that if I set the cron scheduler to run every minute and then click on "Update", I see the logs in the log file. When I clicked on "Run now", I would not see the logs in the log file, but I saw the summary on the issues change.
Thank you for explaining the order of operations here. I think it's helpful so I've marked your answer as the accepted answer.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my version of Jira, it was working even with Run Now. But glad you're able to see the logs with the scheduled run. at least.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.