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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.