When I attempt to search for a document named "Hello World" in my personal space, I get a `400 Bad Request`
CQL = `https://allenmanning.atlassian.net/wiki/rest/api/content/search?cql=title=%22Simple%20Doc%20-%20Hello%20World%22%20and%20space=~557058634d59d0949841909bb13093ab41d0c5&cqlcontext=%7B%22contentStatuses%22%3A%5B%22archived%22%2C%20%22current%22%2C%20%22draft%22%5D%7D`
Personal Space:
`https://allenmanning.atlassian.net/wiki/spaces/~557058634d59d0949841909bb13093ab41d0c5/overview?homepageId=65617`
This works in non-personal spaces, so I'm wondering if there is a limitation on the ~-based key.
I was able to get this working by changing the syntax from:
`and space=`
to
`&spaces=`
@Al Manning, I am able to search against personal spaces using a more simple query -
https://xxxx.atlassian.net/wiki/rest/api/content/search?cql=title=test&spaces=~xxxxx works for me. Are you sure the rest of your query is good? I can't get your rest API to run with the text "&cqlcontext={"contentStatuses":["archived","current","draft"]}" on the end.
Thanks, Kian
Thanks for the help, your suggested syntax change did the trick. Context is working when I made the change.
It looks like you're new here. Sign in or register to get started.