JMWE several condition check

Anastasia Krutitsenko July 18, 2022

Hello,

 

I would like to set a JMWE Conditional execution, so the point is - when a ticket is created it duplicates same request to another project. The only thing is it has to match 7 different request types:

Screenshot 2022-07-18 at 17.24.20.png

Will this work this way? Or for each request type there should be different workflow execution?

 

Thank you.

1 answer

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2022

Hi @Anastasia Krutitsenko ,

you mentioned "different request types" but your code snippet refers to the Issue Summary. Is your conditional execution based on issue summaries or the "customer request type" field (from Jira Service Management)?

If it is based on the Summary, then your approach is correct except that you need to use the "or" operator between conditions, all in a single expression:

{{ issue.fields.summary == "Summary A" or issue.fields.summary == "Summary B" or issue.fields.summary == "Summary C" }}
Anastasia Krutitsenko July 18, 2022

Hi @David Fischer 

Thank you for the quick reply. The execution is based on Summary. 

 

The execution failed. Could you please advise on how to set it correctly?

Screenshot 2022-07-18 at 18.01.56.png

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2022

The problem doesn't seem to be related to conditional execution. Can you share the full post-function configuration? Also, did you expand the error to look at the details (click on the > arrow)?

Anastasia Krutitsenko July 18, 2022

Screenshot 2022-07-19 at 09.31.09.png

Here is full post-function configuration.

Anastasia Krutitsenko July 19, 2022

Screenshot 2022-07-19 at 10.33.04.png

 

I have modified the post-function. Shall this work now or something needs to be changed?

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2022

@Anastasia Krutitsenko the configuration you have shared is for a Create Issue(s) post function, but the errors were for an Email Issue post function so I think you got confused. Can you double check?

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2022

In any case, the latest screenshot seems correct. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events