The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Hi @Wesley Wong 

 

Can you paste how look your rule?

 

Regards,

Seba

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events