Custom scheduled jobs in scriptrunner have a bound variable
com.atlassian.scheduler.JobRunnerResponse response
How is this used?
I'm assuming something like this
try {
doTheThing()
response = JobRunnerResponse.success("it was good")
} catch (Exception ex) {
response = JobRunnerResponse.failed("everything was terrible")
}
what value would that provide?
I am not sure if would provide much value in the Scriptrunner context since we get logs and execution details right from the ScriptRunner UI.
But I suspect that variable exists in the binding because they have to generate it to use the built-in scheduler component of Jira.
I think if you added a message to the job, you could view it in /secure/admin/SchedulerAdmin.jspa
This could be useful for other plugins that instantiate the JobRunnerResponse and don't track logs and success like the scriptrunner UI does.
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.