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. 
      

      For all releases: Make sure that Confluence is not on ready only mode, it could cause the same behavior as described in the document.

      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';
      

          Form Name

            [JSDSERVER-15130] Knowledge Base Space cannot be unliked from JSM project

            Benjamin S made changes -
            Affects Version/s New: 5.12.15 [ 109303 ]
            Rodrigo Bruch made changes -
            Description Original: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. 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:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

             !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            Note that the same error will also be thrown when trying to select a different Confluence application and click on the switch button:
             !JSM511_ReplicationStep1.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            New: h3. 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)
            h3. Steps to Reproduce
             # Create a Knowledge Base Space in a Confluence Data Center application
             # Link the Confluence application with the Jira application
             # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
             # Link a Confluence space
             # Go back to Confluence, and delete the Space
             # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
             # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.
            h3. Actual Results
            h4. 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:
            {code:java}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}
            !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!
            h4. 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:
            {code:java}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}
            !JSM511_ReplicationStep2.png|thumbnail!

            Note that the same error will also be thrown when trying to select a different Confluence application and click on the switch button:
            !JSM511_ReplicationStep1.png|thumbnail!
            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}
            h3. (!) For all releases: Make sure that Confluence is not on ready only mode, it could cause the same behavior as described in the document.
            h3. 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:
            {code:java}
            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';
            {code}
            Julien Rey made changes -
            Description Original: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. For JSM versions below 5.11.0

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

             !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            Note that the same error will also be thrown when trying to select a different Confluence application and click on the switch button:
             !JSM511_ReplicationStep1.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            New: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. 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:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

             !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            Note that the same error will also be thrown when trying to select a different Confluence application and click on the switch button:
             !JSM511_ReplicationStep1.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            Julien Rey made changes -
            Description Original: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. For JSM versions below 5.11.0

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

             !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            New: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. For JSM versions below 5.11.0

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

             !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            Note that the same error will also be thrown when trying to select a different Confluence application and click on the switch button:
             !JSM511_ReplicationStep1.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            Julien Rey made changes -
            Description Original: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. For JSM versions below 5.11.0

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

            !Screen Shot 2024-02-19 at 11.36.03 AM.png|width=924,height=476!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            New: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. For JSM versions below 5.11.0

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

             !Screen Shot 2024-02-19 at 11.36.03 AM.png|thumbnail!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            Julien Rey made changes -
            Description Original: h3. Issue Summary

            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce

            1 - Creating a Knowledge Base Space
            2 - Linking it to Jira
            3 - Deleting de Space
            4 - Trying to unlink the Space
            h3. Expected Results

            Unlink the Space
            h3. Actual Results

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

            !Screen Shot 2024-02-19 at 11.36.03 AM.png|width=924,height=476!

            On the application logs we can see the error.
            {code:java}
            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.
            {code}
            h3. 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:
            {code}
            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';
            {code}
            New: h3. 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)

            h3. Steps to Reproduce

            # Create a Knowledge Base Space in a Confluence Data Center application
            # Link the Confluence application with the Jira application
            # Go to the KB configuration page of a JSM project via *Project Settings > Knowledge base*
            # Link a Confluence space
            # Go back to Confluence, and delete the Space
            # Go back to the *Project Settings > Knowledge base* page of the JSM project in Jira
            # Try to unlink the Confluence space

            h3. Expected Results

            The space should be unlinked without any error.

            h3. Actual Results

            h4. For JSM versions below 5.11.0

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

            !Screen Shot 2024-02-19 at 11.36.03 AM.png|width=924,height=476!

            h4. 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:
            {code}
            We couldn't unlink the Knowledge Base space

            Refresh the page and try again. If this keeps happening, contact your Jira admin.
            {code}

             !JSM511_ReplicationStep2.png|thumbnail!

            h4. For any JSM version

            On the application logs we can see the error.
            {code:java}
            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.
            {code}

            h3. 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:
            {code}
            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';
            {code}
            Julien Rey made changes -
            Attachment New: JSM511_ReplicationStep1.png [ 475269 ]
            Attachment New: JSM511_ReplicationStep2.png [ 475268 ]
            Jimmy Bell made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 933285 ]
            Jimmy Bell made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 933452 ]
            Jeff Curry made changes -
            Description Original: h3. Issue Summary

            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce

            1 - Creating a Knowledge Base Space
            2 - Linking it to Jira
            3 - Deleting de Space
            4 - Trying to unlink the Space
            h3. Expected Results

            Unlink the Space
            h3. Actual Results

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

            !Screen Shot 2024-02-19 at 11.36.03 AM.png|width=924,height=476!

            On the application logs we can see the error.
            {code:java}
            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.
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behavior. A workaround will be added here when available
            New: h3. Issue Summary

            This is reproducible on Data Center: (yes)
            h3. Steps to Reproduce

            1 - Creating a Knowledge Base Space
            2 - Linking it to Jira
            3 - Deleting de Space
            4 - Trying to unlink the Space
            h3. Expected Results

            Unlink the Space
            h3. Actual Results

            The Space can't be unlinked, and the error below is thrown in the UI:
            {code}
            Something went wrong with the knowledge base plugin. We're not sure what, but we suspect plugin pixies.
            {code}

            !Screen Shot 2024-02-19 at 11.36.03 AM.png|width=924,height=476!

            On the application logs we can see the error.
            {code:java}
            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.
            {code}
            h3. 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:
            {code}
            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';
            {code}

              bfa5bb10b6a8 Arslan Qamar (Inactive)
              d7087ee2dbf9 Marcos Vinicius
              Affected customers:
              4 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: