Forums

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

AQL query on attribute "Serial Number" outputs nothing !

adrien miniere March 8, 2023

Hello,

 

I habe configured some object type with following attributes (among others):

 Id NameDescriptionTypeType ValueAdditional Value  
 2681 Device NameThe name of the objectDefaultText   
 2765 Device Type DefaultText   
 2766 Model DefaultText   
 2688 Serial Number DefaultText   
 2767 Device Infos DefaultText   
 2689 Network ObjectReference  
    

 

When executing a query like:

"Device name" LIKE 0234 , the query outputs the expected items

When executing a query like:

"Serial Number" LIKE "Q3", the query outputs nothing.

Even if I input:

"Device name" LIKE 0234 AND "Serial Number" != hello

I don't get any output, while:

"Device name" LIKE 0234 AND "Device Type" != hello

works fine.

It seems that the particular attribute "Serial Number" bugs. Is there any reason? What do I do wrong?

Any hint would be great.

Regards

Adrien

1 answer

1 accepted

1 vote
Answer accepted
Joseph Chung Yin
Community Champion
March 8, 2023

@adrien miniere -

Can you provide some additional information on the actual object records?  (example the object where "Serial Number" that has Q3)

Afterward, we can suggest further recommendation on your AQL.  In general since the "Serial Number" is a "text" attribute, then your AQL should works.

https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

adrien miniere March 8, 2023

issue-in-DB-for-JIRACommunity-01.PNG

Hi Joseph,

for security reasons, I cannot provide too much infos, but I hope this screenshot will suffice.

Regards

Adrien

adrien miniere March 8, 2023

@Joseph Chung Yin, in that case, this was the output of the AQL:

"Device name" LIKE 0224 ORDER BY "Device Name" ASC

Regards

adrien miniere March 8, 2023

by the way, the issue arises also when I use the basic search (so without advanced search AQL). This is why I wondered if there is a particular issue with the attribute name "Serial Number"

issue-in-DB-for-JIRACommunity-02.PNG

On the attached screenshot, the basic query was executed one time, without results, and I displayed the search filter again for the screenshot.

 

Joseph Chung Yin
Community Champion
March 8, 2023

In your image - testing with Serial number you have "Q2J".  However your object example is showing with "Q2F...".

Can you try to test your AQL against Serial Number of just "Q2"?  I believe there may be typo in the AQL search.

Best, Joseph

adrien miniere March 8, 2023

issue-in-DB-for-JIRACommunity-03.PNG

done :-)

Joseph Chung Yin
Community Champion
March 8, 2023

@adrien miniere -

It is very odd.  At this time, I believe the best course for you is for you to contact Atlassian Support (https://support.atlassian.com) for further assistance, so they check on the system side to determine if there are anything captured in the logs.

Sorry.

Best, Joseph

adrien miniere March 9, 2023

OK, ticket submitted. Thanks for your support however.

Suggest an answer

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

Atlassian Community Events