Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-1989

Get process/task variables doesn't return the correct number of items when maxItems or skipCount parameter is used

    Details

    • Type: Bug
    • Status: Review (View Workflow)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
      None
    • Work Funnel:
      Feature
    • Template:
    • Bug Priority:
      Category 1

      Description

      Steps to reproduce:
      Calling with admin user GET processes/{processId}/variables?maxItems=2 , where processId is an existing one, the response is:

      "pagination": {
            "maxItems": 2,
            "hasMoreItems": false,
            "totalItems": 22,
            "count": 22,
            "skipCount": 0
         }
      

      Expected result: "count" field should be 2
      Actual result: "count" field is equal to totaItems

      Calling with admin user GET processes/{processId}/variables?skipCount=2 , where processId is an existing one, the response is:

      "pagination": {
            "maxItems": 100,
            "hasMoreItems": false,
            "totalItems": 22,
            "count": 22,
            "skipCount": 2
         }
      

      Expected result: "count" field should be 20
      Actual result: "count" field is equal to totaItems

      Same response is received on:

      - GET /tasks/{taskId}/variables
      - GET /processes/{processId}/items
      - GET /tasks/{taskId}/task-form-model
      - GET /tasks/{taskId}/items
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  cagache Claudia Agache
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel