Forums

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

Confluence REST API sort by relevance

Dan Bunch
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!
April 16, 2024

Hello all,

I'm working with Confluence REST API for the first time, and I'm trying to get my Python script to sort Pages within my space key by relevance. It works great for ordering by last modified desc, but I need the relevance search. Is that available?

params = {
'cql': f"text ~ \"{query}*\"",
'expand': "body.storage",
'limit': 3

'orderby': "lastModified desc"
}

I'm doing this using Zapier (Code by Zapier Python block). The query is the summary of the ticket submitted from earlier in the flow.

Thank you!

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Champion
April 17, 2024

Hi @Dan Bunch ,

That is not available.

Suggest an answer

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

Atlassian Community Events