{
"errors": [
{
"message": "Cannot route request: cannot extract cloud id",
"locations": [],
"extensions": {
"service": "confluence_legacy",
"errorSource": "GRAPHQL_GATEWAY",
"statusCode": 400,
"agg": {
"severity": "NORMAL",
"ugcPiiSafe": true
},
"classification": "CloudIdIsMissingException"
}
}
],
"data": {
"confluenceLegacy_createSpace": null
},
"extensions": {
"gateway": {
"request_id": "efc8ca8d15f541c0a28e0359ef62eb04",
"crossRegion": false,
"edgeCrossRegion": false
}
}
}
Hi @Denis Rousselle ,
I cannot resist a good GraphQL puzzle, so I spent some time with this. I believe you're not doing anything wrong really, much rather it could be that this particular mutation is not working currently. To quote the documentation:
The field is extremely unstable. It can go through changes at any moment, and its execution can be slow and/or unreliable. Clients should use it with care and at their own risk
While I've found Atlassian's REST APIs to be generally quite stable, even when called 'beta', when they say something is experimental in GraphQL, they really mean it.
That being said: I believe you're trying to use GraphQL to create a related space in Confluence, let me offer a different solution that might also work for you:
mutation createConfluenceRelationship($fromAri: ID!, $toAri: ID!) {
devOps {
ariGraph {
createRelationships(
input: {
relationships: {
type: "project-documentation-entity",
from: $fromAri,
to: $toAri
}
}
)
{
success
errors {
message
}
}
}
}
}
The $fromAri and $toAri would be Jira and Confluence respectively. Not sure if this is a perfect fit for your case, but hopefully it gets you going into the right direction.
Best regards,
Oliver
I wonder if this part of GraphQL is not addressed to Jira Server, it's still strange to have one and the same place to use both versions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.