Hello,
I've got a Scriptrunner listener that listens for worklog entries. My script runs fine and does its job but I'd like to use the condition section to reduce the executions to eliminate runs that I don't care about. I want to ignore worklog entries from issues that are not of a certain issue type.
I tried using these Jira expressions :
["New Software Request"].includes(issue.issueType.name)
or
["New Software Request"].includes(new Issue(worklog.issueId).issueType.name)
but I get an error saying either issue is null or worklog is null.
In the script itself I use worklog.issueId to get the issue key of the triggering issue but it doesn't seem to exist in the conditional section.
I'm confused.