Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-4171

Rest API 2.0 : Remove Patch request for Epic links doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 10.110.0
    • 10.107.4
    • REST API
    • 1
    • Severity 3 - Minor
    • No

    Description

      Issue Summary

      Doing a Patch request to the rest/align/api/2/Epics/EpicId endpoint with a remove operation, while there is only one item in the array of links, returns a 204 success result but the link is not removed.

      Steps to Reproduce

      1. Make a PATCH request to rest/align/api/2/Epics/EpicId endpoint with the following body; to create a link:
        [
          {
            "op": "add",
            "path": "/links/0",
            "value": {
               "id": 57,
               "name": "linkymclinkface",
               "link": "somelink.com"
            }
          }
        ] 

        Returns 204 and the link is created in the array in the position 0.

      2. Make a PATCH request to rest/align/api/2/Epics/EpicId endpoint with the following body; to remove the previously created link:
        [
            {
                "op": "remove",
                "path": "/links/0"
            }
        ] 

      Expected Results

      The remove operation deletes the link in the position 0 even when it is the last item in the array of links

      Actual Results

      The link is not removed although we get a status 204 success

      Workaround

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

      Attachments

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              646db21d89d1 Francois Panaget
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync