Organizations that have been removed from a project are still associated with work items via JQL and REST APIs

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      Creating a work item with an organization and then removing the organization from the project results in the work item still appearing when searching with JQL and the organization still being returned by the REST API response. Despite the organization not appearing on the work item view UI.

      Steps to Reproduce

      1. Add an organization to a JSM project
      2. Create a work item with the organization field set to the above organization
      3. Use the work item view search to search for work items on the organization above 
        e.g. project = "PJ" AND Organizations = "my org 1"`
      4. Note that rest/api/2/issue/({IssueKey} returns the organization as field value
      5. Remove the organization from the project (go to the organizations page to do so)
      6. Note that the work item no longer has a value in the organization field on the work item view

      Expected Results

      The work item should not be returned by the organization JQL and the API response should not contain the organization

      Actual Results

      The work item is still returned by the JQL and the API response still lists the organization

      Workaround

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

            Assignee:
            Unassigned
            Reporter:
            Lilian Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: