I am writing post function to send custom email using below condition
post-function only works when JIRA is Project=XYZ AND issue type = Story AND (Epic link = XYZ-691 OR XYZ-1114)
Till now, I have no idea yet except the below two lines.
issue.projectObject.key == 'XYZ'
issue.issueType.name == 'Story'
How to do for OR condition?
This should work --
issue.projectObject.key == 'XYZ' &&
issue.issueType.name == 'Story' && (
cfValues['Epic Link']?.key == 'XYZ-691' || cfValues['Epic Link']?.key == 'XYZ-1114'
)
Let me know, if you run into a problem please include the error.
What plugin are you using? For the scripting?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.