Querying spaces for their assigned labels results in a STATUS=500 error response

Carsten Klein April 25, 2023

When using scriptrunner for confluence cloud

 

get('/wiki/api/v2/spaces?labels=project').asObject(Map).body

 

I get a 502 error response.

 

And this is not caused by scriptrunner.

 

The same happens when issuing the following request to my confluence cloud instance, yet this time it will be a 500 internal error response.

https://coldrye-forge.atlassian.net/wiki/api/v2/spaces?labels=project

 

leaving you with a response similar to this

image.png

 

  1. Request URL:
  2. Request Method:
    GET
  3. Status Code:
    500

 

However, the official API documentation states, that one should be able to query for spaces that have specific labels (comma separated list of labels).

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get

however, the return result for get spaces does not contain any labels

{ "results": [ { "id": "<string>", "key": "<string>", "name": "<string>", "type": "global", "status": "current", "homepageId": "<string>", "description": { "plain": {}, "view": {} } } ], "_links": { "next": "<string>" } }

and why does this editor not support any code "embeds"?

0 answers

Suggest an answer

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

Atlassian Community Events