Reindexing old Pages to Support New Content Property Alias in Confluence App

javifm86
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 24, 2024

Hi, I am developing a Confluence app. I have a custom content property saving additional info on each page. The property is page-status. It is pretty simple, just an object with two properties: state and publisher:

{ "state": "new", "publisher": "56375637637:353y7t668" }

 

We were using CQL for searching pages using state, but now we want to add the possibility for filtering pages using publisher field as well.

We have added to descriptor (atlassian-connect.json) a new alias for publisher property.

  "confluenceContentProperties": [ { "key": "test-content-property", "name": { "value": "Status" }, "keyConfigurations": [ { "propertyKey": "page-status", "extractions": [ { "objectName": "state", "type": "string", "alias": "appState", }, { "objectName": "publisher", "type": "string", "alias": "pagePublisher" } ] } ] } ],

 

And here is the problem, when we want to use via CQL that filter, it only works in new pages or pages that have been edited after the update of the descriptor.

 

Is there any possibility to make it work for old pages created without needing to edit them? I don't know if a reindex is needed, but after 2 days I don't see any change in the results of my CQL.

 

Thanks, kind regards.

1 answer

0 votes
Aron Gombas _Midori_
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 25, 2024

Your observation is correct. The index will not be rebuilt automatically unless you trigger it for every specific page - through a page edit, for example.

javifm86
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 28, 2024

Thank you, for me it is a pain point, because you have to do something manually and it should be automatic.

Like Aron Gombas _Midori_ likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events