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

Jira Align API does not honor the filters on 'inRecycleBin' and 'canceledObject' fields on the Features

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 10.86
    • 10.82
    • REST API
    • None
    • 3
    • Severity 3 - Minor
    • Breakers - Usher 8

      Issue Summary

      Jira Align API does not honor the filters on 'inRecycleBin' and 'canceledObject' fields on the Features

      Steps to Reproduce

      For Deleted Features:
      curl -X GET 'https://xxx.jiraalign.com/rest/align/api/2/Features?expand=false&$select=title,id,externalKey,inRecycleBin,releaseId,canceledObject&$filter=id%20eq%208605&odatafilter=inRecycleBin%20ne%20false' -H "Accept:application/json" -H 'Authorization: Bearer <token>' | json_pp
      
      For Cancelled Features:
      curl -X GET 'https://xxx.jiraalign.com/rest/align/api/2/Features?expand=false&$select=title,id,externalKey,inRecycleBin,releaseId,canceledObject&$filter=id%20eq%208606&odatafilter=canceledObject%20ne%201' -H "Accept:application/json" -H 'Authorization: Bearer <token>' | json_pp
      

      Expected Results

      The API should only be returning work items that are matching the specified filter. None of these operators are working:

      isRecycleBin ne 'true'
      isRecycleBin ne true
      isRecycleBin eq 'false'
      isRecycleBin eq false
      isRecycleBin eq 'null'
      
      canceledObject ne '1'
      canceledObject ne 1
      canceledObject eq '1'
      canceledObject eq 1
      canceledObject eq 'null'
      canceledObject eq null
      

      Actual Results

      The filter in the 'inRecycleBin' and 'canceledObject' fields does not work regardless of what the values of the related fields are. Under normal circumstances, the following curl commands should not return any results.

      Deleted Features:
      curl -X GET 'https://xxx.jiraalign.com/rest/align/api/2/Features?expand=false&$select=title,id,externalKey,inRecycleBin,releaseId,canceledObject&$filter=id%20eq%208605&odatafilter=inRecycleBin%20ne%20true' -H "Accept:application/json" -H 'Authorization: Bearer <token>' | json_pp
      ...
            "id" : 8605,
            "externalKey" : null,
            "releaseId" : -2,
            "inRecycleBin" : true,
            "canceledObject" : null,
            "title" : "NYZ-Feature-toDelete"
      
      -------------------------------------------------------------
      
      Cancelled Features:
      curl -X GET 'https://xxx.jiraalign.com/rest/align/api/2/Features?expand=false&$select=title,id,externalKey,inRecycleBin,releaseId,canceledObject&$filter=id%20eq%208606&odatafilter=canceledObject%20ne%201' -H "Accept:application/json" -H 'Authorization: Bearer <token>' | json_pp
      ...
            "inRecycleBin" : true,
            "title" : "NYZ-Feature-toCancel",
            "releaseId" : -2,
            "canceledObject" : 1,
            "externalKey" : null,
            "id" : 8606
      
      

      Workaround

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

            kforeman@atlassian.com Kyle Foreman
            2d9e3a4549ac Niyazi Fellahoglu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: