Syntax for send custom email for server instance

Priyanka Khare January 9, 2018

While using send custom email  feature of Scriptrunner for JIRA server instance -when giving the condition = ((issue.projectObject.key == 'IV') && (issue.statusObject.name=="Confirm Ownership")) we are getting the warning message, please let us know what is the syntax we are missing.

1 answer

0 votes
adammarkham
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2018

I think what your refering to is the deprecation of issue.statusObject.

You should be able to change that to the following condition (I've also removed the extra parentheses as they are note required):

issue.projectObject.key == "IV" && issue.status.name == "Confirm Ownership"

Hope this helps.

Suggest an answer

Log in or Sign up to answer