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

The "Related Knowledge Base Articles" panel does not return any result

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 5.11.0, 5.12.0, 5.13.0, 5.14.0, 5.12.4, 5.15.2
    • Knowledge Base
    • None

      Note : This issue is tracked as a confluence bug

      Issue Summary

      The "Related Knowledge Base Articles" panel does not return any result, depending on the summary of the Jira Service Management (JSM) issue.

      Steps to replicate

      1. Install JSM on any version from 5.11.0
      2. Install Confluence on any version from 8.5.0
      3. Integrate JSM and Confluence to configure a KB space in the JSM project
      4. Create an article in the Confluence KB space with the title "How to request a laptop?"
      5. Create a new JSM issue with the summary "Laptop hello"

      Expected behavior

      The KB article should show in the "Related Knowledge Base Articles" panel.

      Actual result

      The "Related Knowledge Base Articles" panel does not return any result:

      Notes

      Note 1

      The "Related Knowledge Base Articles" panel will return the relevant KB article if the JSM issue summary is just "Laptop"

      Note 2

      When using the "Search knowledge base" link to search for the word "Laptop", there will be some result:
       

      Explanation around the bug

      • Before JSM 5.11.0, JSM used to use a different Confluence REST API End point to search for articles, which is a GET method and which includes the search string inside the URL. This search was working perfectly, because it was search for each word individually ("laptop" OR "hello") and was able to find relevant articles:
        GET /rest/knowledge-base/1.0/search/KB
        
      • Since JSM 5.11.0, JSM started to use a different Confluence REST API End Point which is buggy, because instead of search for "laptop" OR "hello", it is searching for the exact match "Laptop Hello", and no result is returned from Confluence
        POST /rest/knowledge-base/1.0/searchV2
        

      Workaround

      Modify Jira's dark features by following the steps below

      1. Navigate to <BASE_URL>/secure/admin/SiteDarkFeatures!default.jspa
      2. Enter sd.use.confluence.v2.search.disabled in the Enable dark feature section
      3. Click on Add

      The purpose of using this dark feature is to force JSM to use the older REST API end point from Confluence (and to go back to the old JSM behavior before 5.11.0), since it works as expected.

        1. UsingSearchKnowledgeBaseLink.png
          UsingSearchKnowledgeBaseLink.png
          271 kB
        2. PanelWithResult.png
          PanelWithResult.png
          170 kB
        3. EmptyPanel.png
          EmptyPanel.png
          171 kB

            Unassigned Unassigned
            aeba0c6d4a27 Anand Kujur
            Votes:
            3 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: