Using aqlFunction in JQL for Multi Select Assets Field

Scott Boisvert October 9, 2024

I have an Assets select field called Facilities, this field is configured to select multiple asset objects. I'm looking to write a JQL statement that will return the issue if the Assets field contains at least one Facility object where the Name = "XXXXXX"

Here is the JQL that I came up with that half works. This will bring back issues if there is only one Facility selected, if there are multiple those are not returned.

 

project = FACSD AND "Customer Request Type" = "Business Meal Request" AND Facilities in aqlFunction("Site.Name = \"XXXXXX\"")

Assets Search.png

For example this issue is not included and should be:

Assets Search 2.png

How should I update my JQL/AQL to pull in issues that have multiple Facilities selected where at least one matches the AQL criteria?

1 answer

0 votes
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2024

Hi @Scott Boisvert could you please replace = to with Like function. Below is the example. 

"Site.Name LIKE 'XXXXXX'"

Scott Boisvert October 9, 2024

@Manoj Gangwar Yep, tried that too... No luck returns the same set of issues.

Suggest an answer

Log in or Sign up to answer