Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use multiple conditions in a Script Post-Function [ScriptRunner] Function

Ward Schwillens_ Schwillie
Contributor
October 14, 2020

I want to use multiple conditions in a Script Post-Function [ScriptRunner] Function. But I cannot get it to evaluate to true. image.png

only using one of the conditions works, but the combination with the "&&" operator does not evaluate to true.

How can I get this to work? 

 

1 answer

1 vote
Niranjan
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.
October 14, 2020

Hi @Ward Schwillens_ Schwillie ,

I believe that you should be using it this way

issue.issueType.name == 'xyz' && issue.getProjectObject().getProjectCategoryObject().getName()=="ABC"

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
v8.9.0
TAGS
AUG Leaders

Atlassian Community Events