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)
I'm not a master with Groovy, but I don't think "includes" is a valid list method.
Do you mean "contains" ?
Issue issue = event.getIssue()
["New Software Request"].contains(issue.getIssueType())
The conditions section takes a Jira "expression" which is not strictly groovy - more akin to Javascript. includes is a valid list method
https://developer.atlassian.com/cloud/jira/software/jira-expressions/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.