Forums

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

Why does only the ID in a custom CQL field get saved, but the text is lost?

Aldin Delic
Contributor
September 9, 2020

Hello,

 

I recently implemented a custom cql field with the CQL Field Module  Guide. If you follow the guide you will notice that the results found are bein mapped to id = x.name, text= humanName. 

cqlFieldGuide.png

Since I wanted an exact search with id's, my results from the storage format contained an id and a name and I mapped accordingly. It worked, when I selected my cql field it returned the expected values and showed the correct text, it didn't show the id as expected.

pagePropertiesCqlFilter.png

When selecting one of those options not the text was passed, but the ID and the search was successful. The expected pages were found in the Page properties report macro. 

But after saving and reopening the page properties macro the text was gone and only the ID remained. The same behavior is visible while using the CQL filter in the advanced search after reloading.

 

afterSavingAndReopening.png

Is this a bug, or is it intentional? How can I search with IDs but save and represent the Text values to the users?

 

Thank you

Aldin Delic

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events