Forums

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

JQL automation expression to populate selected values from a multi-select field

Trevor Overstreet
Contributor
May 26, 2023

Hello Jira world, I'm trying to populate the Summary to include values that are selected from a multi-select field. I attempted to input {{issue.fields.customfield_XYZ}} but this would populate all of the available values. I only need those that were selected from the list.

Ex: multi-select field has values A,B,C,D,E

User selects A,C,D

Need Summary to read A, C, D (exclude B and E since not selected)

 

Thank you!

1 answer

1 vote
John Funk
Community Champion
May 26, 2023

Hi Trevor,

Try using {{issue.customfield_XYZ}} without the .fields.

Trevor Overstreet
Contributor
May 26, 2023

Thanks for the quick response John! I attempted {{issue.customfield_13330}} but no luck. Here is my field condition below.

Also, a little caveat, so the user may select other values outside of the list below but I would expect those values not to populate in the JQL Summary in this rule given the condition.

I have other rules that will create a task on selections outside of those you see selected below.

So if the user selects Paid Social (not in the list below) from the same field I have a separate rule to create an issue for that value outside of this rule. See other snip

Screen Shot 2023-05-26 at 10.14.15 AM.png

Screen Shot 2023-05-26 at 10.28.16 AM.png

John Funk
Community Champion
May 29, 2023

So, what is not working? What are you expecting to happen that is not happening? 

Trevor Overstreet
Contributor
June 12, 2023

I'm seeing values in the JQL summary when an issue is created outside of the rule field condition.

Ex: A user may select value A,B,C, E,F and when those are selected issue type A, issue type B and issue type C are created as separate issues. However, if issue type E and F are selected I want one issue to be created for both and ONLY want to see those 2 selections (E, F) in the JQL summary.

The rule as it stands displays all of the selections regardless of the field condition

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