Getting JSM Knowledge base linked to a space data in the JSM Rest API

I looking for a way to find if the Knowledge base is linked to a Confluence space through the JSM Cloud Rest API. I was not able to find a suitable API in the docs, is there any workaround for this?

1 Like

@Karthikeyan,

It looks like that’s pretty straight forward with GET /rest/servicedeskapi/knowledgebase/article that get articles. The payload returned is a list of articles with the right parts to know about Confluence:

{
  ...
  "values": [
    {
      "title": "Stolen computer",
      "excerpt": "assuming your computer was stolen",
      "source": {
        "type": "confluence",
        "pageId": "8786177",
        "spaceKey": "IT"
      },
      "content": {
        "iframeSrc": "https://your-domain.atlassian.net/rest/servicedeskapi/knowledgebase/article/view/8786177"
      }
    },
    ...
  ]
}

So we know the knowledge base is linked to the IT space. What’s missing from your perspective?

1 Like