Forums

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

Set multiple services to Affected Services field based on a string

Wesley Wong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2025

Similar to this previous question: 

https://community.atlassian.com/forums/Jira-questions/Set-multiple-services-to-Affected-Services-field-based-on-a/qaq-p/2540689

I am trying to achieve the same thing, except that my list of values are from a drop-down list.

I have a custom field multiselect drop-down - {{issue.customfield_10873}}

I use the look-up objects action to look-up the Services Schema using the query

Name in "{{issue.customfield_10873.name}}"

And then I use the Edit Issue action to set the value of the Affected Services field

{ "update": { "Affected services" : [{"set":[ {{#lookupObjects}} {"id":"{{Service ID}}"} {{^last}}, {{/}} {{/}} ] }] } }

This works when only 1 service is selected from my custom multi-select drop-down field but when more than 1 value is selected, the rule does not set the Affected services field.

Any ideas?

 

Thanks

 

 

 

1 answer

0 votes
Sebastian Krzewiński
Community Champion
December 17, 2025

Hi @Wesley Wong 

 

Can you paste how look your rule?

 

Regards,

Seba

Suggest an answer

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

Atlassian Community Events