Post function with multiple conditions Edited

Using the JIRA MISC Workflow extension, I want to do the following:

Set assignee to Joe Smith and set priority to P1 (Critcal) IF

1) the issue type is a bug issue type AND 2) if the reporter is Jane Smith

 

Current configuration --

I have two post functions (one to set the assignee and another to set the priority) with the following conditions:

Conditional exeuection checked

Line 1 {{ issue.fields.issuetype.name == "Bug" }}
Line 2{{ issue.fields.reporter.name == "jane.smith" }}

I tested the condition, and both yielded false , but the assignee and priority were set when a story issue type was created.  Is it possible to use multiple conditions?  If so, I'm guessing I set it up improperly.  Is there an easier way to do this?

Thanks.

1 answer

This widget could not be displayed.

if I understand your requirement correctly hopefully this works:

{{ "true" if ( issue.fields.issuetype.name == "Bug" and issue.fields.reporter.name == "jane.smith" ) else "false" }}

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

524 views 3 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you