Forums

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

Automation Rule: Adding Organizations based on Country from Lookup Table

Fabian Raczkowski March 14, 2024

Hi everyone,

I'm trying to create an automation rule in Jira Service Management that is triggered manually. This automation rule should access a Lookup Table where each country is associated with an organization. Then, for each country listed in the "Countries" field of the issue, I want to add the corresponding organization.

In the For Each branch, I've used the Smart Value {{issue.fields["Countries"].value}},

and then I've used an Edit Issue action with the following JSON payload:

 

{ "update": { "organizations": [ { "add": "{{countries.get(issue.fields['Countries'].value)}}" } ] } }

However, it doesn't seem to be working as expected. I'd appreciate any assistance or guidance on where I might be going wrong with my setup.

Thanks in advance for your help!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events