Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-78661

JQL with "status WAS" might not work with name

XMLWordPrintable

      Issue Summary

      JQL searches with issue status names coupled with some complicated clauses might not work for search.

      Steps to Reproduce

      1. Perform JQL search for example:
        project = "XYZ" AND status WAS "In Progress" 
        
      2. Search will fail to get the correct result.

      Expected Results

      Search should get all the issue keys that were in the status as in the JQL text.

      Actual Results

      JQL searches fail for Status Search with name.

      Workaround

      JQL will accept the Status ID of the status you wish to search for but these are unique to the team-managed project they belong to.

      Example of a successful query:

      project = "XYZ" AND status WAS IN 10245
      

      where
      10248 = 'Done'

      To find the status ID for your team-managed project, you may use the following API call:

      GET /rest/api/3/project/<Insert project key>/statuses
      

              Unassigned Unassigned
              bb22faff10c5 Rahul Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: