Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-15130

Knowledge Base Space cannot be unliked from JSM project

XMLWordPrintable

      Issue Summary

      An error is thrown in the UI when trying to unlink a Confluence space from the Knowledge base configuration of a JSM project (Jira Service Management)

      Steps to Reproduce

      1. Create a Knowledge Base Space in a Confluence Data Center application
      2. Link the Confluence application with the Jira application
      3. Go to the KB configuration page of a JSM project via Project Settings > Knowledge base
      4. Link a Confluence space
      5. Go back to Confluence, and delete the Space
      6. Go back to the Project Settings > Knowledge base page of the JSM project in Jira
      7. Try to unlink the Confluence space

      Expected Results

      The space should be unlinked without any error.

      Actual Results

      For JSM versions below 5.11.0

      The Space can't be unlinked, and the error below is thrown in the UI on the Top Right corner:

      Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
      

      For JSM versions from 5.11.0 and below 5.15.2

      The Space can't be unlinked, and the error below is thrown in the UI:

      We couldn't unlink the Knowledge Base space
      
      Refresh the page and try again. If this keeps happening, contact your Jira admin.
      

      Note that the same error will also be thrown when trying to select a different Confluence application and click on the switch button:

      For any JSM version

      On the application logs we can see the error.

      2024-02-14 09:34:52,188-0600 http-nio-8080-exec-407 WARN cwirtz 574x850138x2 1gqi6t3 x.x.x.x,x.x.x.x /rest/servicedesk/1/pages/settings/kb/SPACE [c.a.s.i.api.applink.BaseAppLinkResponseHandler] There was an error communicating with Confluence: Space not found. 
      

      Workaround

      The invalid KB links can be removed from Jira's database. The following example removes Confluence KB links with the space key of ds:

      delete from "AO_54307E_CONFLUENCEKBENABLED" where "CONFLUENCE_KBID" in ( select "ID" from "AO_54307E_CONFLUENCEKB" where "SPACE_KEY" = 'ds');
      
      delete from "AO_54307E_CONFLUENCEKBLABELS" where "CONFLUENCE_KBID" in ( select "ID" from "AO_54307E_CONFLUENCEKB" where "SPACE_KEY" = 'ds');
      
      delete from "AO_54307E_CONFLUENCEKB" where "SPACE_KEY" = 'ds';
      

              bfa5bb10b6a8 Arslan Qamar (Inactive)
              d7087ee2dbf9 Marcos Vinicius
              Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: