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
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"?