Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

AQL for multiple selection

Andreas Ummenhofer July 8, 2024

Hey Atlassians,

 

I want to filter an assets field based on the selection of another assets field.

So when I select the "Generation" I only want to see all objects from above selected "Model"

This AQL and field config work with a single selected object, but not with multiple:

"Modell" IN (${customfield_10086})

customfield_10086 = Model

 

Configuration of Custom Field "Generation":

Filter scope (AQL): objecttype = Generation

Filter issue scope (AQL): "Modell" IN (${customfield_10086})

Allow search filtering by these attributes: Generation

Object attributes to display on issue view: Generation

Field can store multiple objects: Yes

 

any idea why I can only select one item based on Model?

Thank you :) 

1 answer

1 accepted

0 votes
Answer accepted
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2024

Hi there,

Have you tried this:

"Modell" IN (${customfield_10086{0}})

The {0} is for multiple values. Could not find it in the Cloud docs, but again might still work on Cloud:
https://confluence.atlassian.com/servicemanagementserver/advanced-placeholders-1044784599.html

Jeroen

 

Andreas Ummenhofer July 8, 2024

Thanks @Jeroen Poismans :) 

I just tried with your query, but doesn´t work unfortunately:

"The AQL query contains one or more placeholder values that are invalid or incorrectly formatted."

 

Andreas Ummenhofer July 8, 2024

@Jeroen Poismans I found wht´s been missing. Just a simple $ :) 

This AQL works!

"Modell" IN (${customfield_10086${0}})

Like • Josh likes this
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2024 edited

Sorry Andreas,

That typo was on me, docs that I linked indeed state the extra "$" which I forgot modifying the example to your case.

Glad it solved the issue!

Like • Andreas Ummenhofer likes this
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 9, 2024 edited

If you would be so kind to Accept the answer so it is marked Solved for future visitors.

Thanks!

Andreas Ummenhofer July 9, 2024

Sure will do @Jeroen Poismans 
Thank you for your help!

Like • Jeroen Poismans likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events