I am using Confluence REST API to search from our products help pages sitting in Confluence and displaying the page links and titles in our software products.
The query likes below.
atlassian.net/wiki/rest/api/content/search?cql=lastModified >= startOfYear() and type = page and space = MYSPACE and label = \"new\" order by lastModified desc";
However, after I updated our help pages yesterday, I found the REST API search returns the old page titles. When I click the link, it opens the correct page with correct page title.
The query worked fine from last year but had problem from yesterday.
Does anyone know why it happens?
Regards,
Hello wenjin.jia@bluescopesteel.com !
I tried replicating this issue but was ultimately unable to. Whenever I queried via REST, the correct page name.
Last test I ran used this query:
.atlassian.net/wiki/rest/api/content/search?cql=type=page%AND%space=MYSPACE
I ran the query before updating a page called “New Editor – Fabric”. This was the result:
Page
Query results
After I changed the page name to “New Editor – Fabric [UPDATED]”, I ran the same query again. Here are the results:
Page
Query results
With this in mind, I would like to understand if:
- This behavior is present when you run any other CQL query via REST.
- This behavior is present when using another browser to run the same query.
Let us hear from you!
Hi Deigo, thank you for your replying.
This behavior is only present in some pages. Some pages work fine but some pages don't.
The query is run from my C# program, and I am using HttpWebRequest, and
UserAgent = "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.