Forums

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

Is there a way to write if - else sort of post function using JMWE

Sateesh Chandra October 7, 2020
  • We have a custom field with multiple values . Multi select
  • For each of the value, we need to create a issue .

I am able to configure that using Please create RingCentral account for {{ issue.fields.customfield_11499 }}  using the condition  {{ issue.fields["List of Applications"] | find({"value":"RingCentral"}) != null }}

E.g If RingCentral is selected, the account is created for that particular user.

 

My problem now is that , the multi select field is having nearly 40 options.

Could you suggest.

--Sateesh

1 answer

1 vote
David Fischer
Community Champion
October 7, 2020

Hi @Sateesh Chandra ,

you need to use the "Multiple issue creation" option, as documented here: https://innovalog.atlassian.net/wiki/x/A4AyQg

In your case, the multiple issue creation "iterator" could be:

{{  issue.fields["List of Applications"] | join(",", "value") }}
Sateesh Chandra October 7, 2020

Does the summary change for each of the issue?

David Fischer
Community Champion
October 7, 2020

It can, if you reference {{it}} in the summary. For example:

Please create {{it}} account for {{ issue.fields.customfield_11499 }} 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events