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

Rest API shows Issue Types without scope for Next-gen projects moved to trash

      Issue Summary

      When using the Rest API endpoint https://YOUR_INSTANCE.atlassian.net/rest/api/3/issuetype, all issue types with the scope information are used on Next-Gen projects, for example:

      self: "https://YOUR_INSTANCE.atlassian.net/rest/api/3/issuetype/10156",
      id: "10156",
      description: "",
      iconUrl: "https://YOUR_INSTANCE.atlassian.net/secure/viewavatar?size=medium&avatarId=10321&avatarType=issuetype",
      name: "IssueTypeTest",
      untranslatedName: "IssueTypeTest",
      subtask: false,
      avatarId: 10321,
      scope: {
        type: "PROJECT",
        project: {
          id: "10144"
        }
      }
      

      Once you move that Next-gen project to the trash, all issue types from that project are shown without the scope under them. This creates bias information, where the customer could get duplicated issue type names without knowing which one is from Classic projects.

      Steps to Reproduce

      1. Create a Classic Issue type (example: IssueTypeTest)
      2. Create an Issue type with the same name on a Next-gen project
      3. Run the Rest API call to see the difference between them (the scope value): https://YOUR_INSTANCE.atlassian.net/rest/api/3/issuetype
      4. Move this Next-gen project to the trash
      5. Run the endpoint for step 3 again.

      There is no direct way of knowing what is the Classic field

      Expected Results

      You can't fetch Issue types from Next-gen project that are on the trash.

      Actual Results

      You fetch Issue types that seem to be from Classic, but they aren't foundable on the UI.

      Workaround

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

            [JRACLOUD-75176] Rest API shows Issue Types without scope for Next-gen projects moved to trash

            Sumeet Padavala (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS New: 1
            Sumeet Padavala (Inactive) made changes -
            Status Original: Waiting for Release [ 12075 ] New: In Progress [ 3 ]
            Bugfix Automation Bot made changes -
            Support reference count Original: 4 New: 5
            Bugfix Automation Bot made changes -
            Support reference count Original: 3 New: 4
            Prithveesh Goel (Inactive) made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 532378 ]
            Bugfix Automation Bot made changes -
            Support reference count Original: 2 New: 3
            Sumeet Padavala (Inactive) made changes -
            Remote Link New: This issue links to "A2. JIRA General › Sonarqube code metrics for Jira cloud › issue-JRACLOUD-75176-fix-issue-type-filtering (jira-cloud-bamboo)" [ 529844 ]
            Sumeet Padavala (Inactive) made changes -
            Remote Link New: This issue links to "A2. JIRA General › Code Changes Notifier › issue-JRACLOUD-75176-fix-issue-type-filtering (jira-cloud-bamboo)" [ 529843 ]
            Sumeet Padavala (Inactive) made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]

              spadavala@atlassian.com Sumeet Padavala (Inactive)
              976c02b75079 Celso J
              Affected customers:
              20 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: