REST API: Inconsistent behaviour in retrieving deleted items

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 10.132.0
    • Affects Version/s: 10.123.3
    • Component/s: REST API

      Issue Summary

      When an Epic is canceled or deleted, and we fetch the item over API, the primaryProgramId shows up as null.

      Steps to Reproduce

      Epics

      1. Create an Epic and perform a GET operation on its ID
      2. Notice that the primaryProgramId and other fields are present.
      3. On the UI, click on Delete in the Epic grid slide-out.
      4. Perform a GET operation on its ID again, and notice the primaryProgramId is set to null.
        {
          "id": 3525,
          "title": "SSR_Epic3",
          "createDate": "2023-03-07T08:28:41Z",
          "ownerId": "661767",
          "themeId": 324,
          "strategicDriver": null,
          "description": "Test",
          "primaryProgramId": null,
        ..
        ..
          "isRecycled": 1,
        ..
        ..
          "isCanceled": null,
          "featureIds": [],
          "health": null,
          "status": null,
          "customFields": null,
          "links": [],
          "self": "https://alignsupport.jiraalign.com/rest/align/api/2/epics/3525"
        }
        

      Features

      1. Create a Feature and perform a GET operation on its ID
        {
          "id": 10700,
          "title": "Created through API",
          "description": "string",
          "releaseId": 407,
          "ownerId": "661767",
          "state": 2,
          "createDate": "2022-07-15T05:33:08Z",
          "type": 1,
          "mmf": 0,
          "isBlocked": 0,
          "priority": 1,
          "primaryProgramId": 255,
          "productId": 37,
          "isMultiProgram": 0,
        }
        
      1. Notice that the primaryProgramId and other fields are present.
      2. On the UI, click on Delete in the Feature grid slide-out.
      3. Perform a GET operation on its ID again, and notice the primaryProgramId is NOT set to null.
        {
          "id": 10700,
          "title": "Created through API",
          "description": "string",
          "releaseId": -2,
          "ownerId": "661767",
          "state": 2,
          "createDate": "2022-07-15T05:33:08Z",
          "type": 1,
          "mmf": 0,
          "isBlocked": 0,
          "priority": 1,
          "primaryProgramId": 255,
          "productId": 37,
          "isMultiProgram": 0,
          "themeId": null,
        ..
        ..
          "isRecycled": 1,
        ..
        ..
          "isCanceled": null,
        }
        

      Expected Results

      • Epics and Features exhibit the same behaviour when performing a GET call on deleted items

      Actual Results

      • Epics don't return the primaryProgramId and Features returns a valid primaryProgramId

      Workaround

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

            Assignee:
            Yannick Genin
            Reporter:
            Sujay
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: