Automation for Multiple If blocks to be True in One Rule?

Brittney Hinesly
Contributor
July 6, 2023

Hello, 

I have a multi select field I'm trying to populate based on the contents of an Email Request. I'm using REGEX to find the values although the rule I've created contains multiple If statements that may or may not be True. Is there a way to make the IF statement work in one rule if multiple are True to populate multiple values within the field? Or do I need to make separate rules for each value? Hoping not :) 

AutomationView.png

1 answer

1 accepted

1 vote
Answer accepted
Brittney Hinesly
Contributor
July 6, 2023

Found a way to make it work and update the multi-select with more than one value if multiple IF statements are true in my rule. The then Action is "Edit Issue", instead of choosing a field to set I skipped adding anything there and added the code below to "Additional Fields" instead. This updates the field "Accounts Required" and adds the value "Business Objects - Atain/ Claim Loss Runs"

{
     "update": {
         "Accounts Required": [
                {
                         "add": {"value":"Business Objects - Atain/ Claim Loss Runs"}
                 }
        ]
    }
}
}

AutomationSolved.png

Suggest an answer

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

Atlassian Community Events