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

API 2.0 - When running a GET against a user the teams are not ordered so a Patch does not have consistent behavior


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 10.107.0
    • 10.105.3
    • REST API
    • 1
    • Severity 3 - Minor
    • No

      Issue Summary

      When a customer does a GET request on /users/


      , the "teams" array keeps coming back in random order. They would like it to come back in the same order consistently.

      This is due to the customer adding teams via API and using path /teams/- in PATCH requests

      Steps to Reproduce

      1) Add one or more teams via Jira Align API using the path /teams/- in PATCH requests like so:

              "op": "add",
              "path": "/teams/-",
              "value": {

      2) Run a GET call via Jira Align API to the following user endpoint:


      Expected Results

      Team order in the array comes back consistently in the same order whenever a GET call is used against a user id

      Actual Results

      The the "teams" array keeps coming back in random order.


      The workaround (and possibly safer approach) is to get the user's current list of teams, parse the array and POST the user with a new array with the allowed teams only.

            njones3@atlassian.com Nathan Jones (Inactive)
            kbaxley Kent Baxley
            1 Vote for this issue
            3 Start watching this issue