Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-15884

Knowledgebase search not returning expected results through API

XMLWordPrintable

      Issue Summary

      When querying the Jira Service Desk Knowledge Base API with the search term "C 07", the results returned by the API are limited to articles with "C 07" in the title, but not in the body of the article. This is inconsistent with the behavior of the manual search on the knowledge base page, which correctly returns articles that contain "C 07" both in the title and the body.

      Steps to Reproduce

      1. Set up a knowledge base in Jira Service Desk with articles that include:
        • One article with "C07" in the title.
        • One article with "C 07" in the title.
        • One article with "C07" in the body, not the title.
        • One article with "C 07" in the body, not the title.
      1. Make an API request to the Jira Service Desk Knowledge Base endpoint
      GET https://yourtestinstance.atlassian.net/rest/servicedeskapi/servicedesk/2/knowledgebase/article?query=C+07
       
      1. Observe the API response to see the returned articles.
      2. Compare the API response with the search results when performing a manual search for "C 07" in the knowledge base page:

       

      https://yourtestinstance.atlassian.net/jira/servicedesk/projects/AD2/knowledge/articles
       

       

      Expected Results

      The API response should return all articles that contain "C 07" either in the title or the body of the article. This should match the search results displayed when performing a manual search on the knowledge base page.

      Actual Results

      The API response only returns articles where "C 07" appears in the title, excluding those where it appears in the body of the article. This behavior differs from the manual search results, which correctly return articles with "C 07" in either the title or body. 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              dac88f2c0f98 Yuvie Naidoo (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: