Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-69655

After restoring an archived project, it is not possible to filter issues by worklogDate on JQL queries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 8.4.0
    • 7.13.0, 7.13.1, 7.13.2, 7.13.3, 7.13.4, 7.13.5
    • JQL, Project - Issues

       

      Steps to Reproduce

      1. Go to Issues > Search for Issues page.
      2. Log any work against any issue.
      3. In the Advanced search, enter the following JQL (as an example) to retrieve the issue where a work log has just been added
        project = SSP and worklogDate >= 2019-07-01 
      1. Go to the Projects admin page and archive the project.
      2. On the Archived projects page, select the same project and restore it. Re-index the project.
      3. Go back to Issues > Search for Issues page and use the same JQL from step 3:
        project = SSP and worklogDate >= 2019-07-01  

      Expected Results

      • The issue(s) that contained work log data will be returned

      Actual Results

      • No issues are returned

      Workaround

      For now, the workaround is to simply archive and then restore an issue. This operation will reindex the worklog for the particular issue.

      Doing it for each issue could be inconvenient but you can use the following REST APIs to achieve this: 

      1. Archive Issue:

      https://docs.atlassian.com/software/jira/docs/api/REST/8.1.0/?_ga=2.21004027.1799173514.1563759460-810944152.1559651610#api/2/issue-archiveIssue

      2. Restore Issue:

      https://docs.atlassian.com/software/jira/docs/api/REST/8.1.0/?_ga=2.21004027.1799173514.1563759460-810944152.1559651610#api/2/issue-restoreIssue

              szarazinski Sławomir Zaraziński
              cpasquali Carla Pasquali (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: