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

API 2.0: PUT call towards /align/api/2/Users/<id> renders wrong team role in UI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 10.85
    • 10.80, 10.81, 10.82, 10.83, 10.84
    • REST API
    • 2
    • Severity 3 - Minor
    • Breakers - Usher 8

    Description

      Issue Summary

      PUT call towards /align/api/2/Users/<id> renders wrong team role in UI

      • Given roleID(15) = “Business Owner”, the UI is incorrectly displaying “Portfolio Member”.
      • Audit log shows “Business Owner” as expected.
      • GET call also shows “Business Owner” as expected.

      Steps to Reproduce

      1. Update user's team membership via API by parsing the following request body:
        (replace values with valid data on your instance)

        PUT /align/api/2/Users/<id>

        {
         "email": "u1s1@agilecraft.xyz",
         "title": "U1S1 Test",
         "roleId": 9,
         "firstName": "User1",
         "lastName": "Scenario1",
         "isExternal": 0,
         "divisionId": 24,
         "regionId": 11,
         "cityId": 25,
         "costCenterId": 1,
         "teams": [
            {
              "teamId": 1384,
              "roleId": 15
            }
         ]
        }
        
      2. Browse to the Users grid, then open User Details slide out
      3. Notice incorrect team role displayed, under Teams tab

      4. Click Audit Log and notice team role is correctly displayed

      5. Make a GET call and notice team role is correctly displayed

         { (...)
          "teams": [
            {
              "teamId": 1384,
              "teamName": "rjc Portfolio (standard) Team",
              "teamType": 5,
              "roleId": 15,
              "roleName": "BusinessOwner"
            }
          ],
          "self": "https://instance.jiraalign.com/rest/align/api/2/users/661720"
        }
        

      Expected Results

      The User Details slide-out should display “Business Owner” team role.

      Actual Results

      The User Details slide-out display team role as “Portfolio Member” instead of “Business Owner”

      Workaround

      • Manually select an appropriate role in the dropdown.

      Attachments

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              rcortez@atlassian.com Rodrigo Cortez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync