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

API: User endpoint inconsistencies on Solution Team

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 10.113.0
    • 10.110.2
    • REST API
    • 1
    • Severity 3 - Minor
    • No

    Description

      Issue Summary

      The API v1 for users doesn't accept the use of roleId 12 (team of teams) for Solution Teams, throwing the error "Role with id 12 is not valid for this team" if a POST is made to it (even if the user already has this roleId).
      The problem is that the API v2 does accept the roleId 12 for Solution Teams, in fact, doing a PATCH to it without a roleId, it will assign this roleId

      Steps to Reproduce

      1. Add an user to a Solution Team through a PATCH using API v2 endpoint Users without providing the roleId
      2. Now do a GET to this user on the API v1 endpoint Users
      3. Use the same content and try a POST to the user, but now on API v1 and see the error

      Expected Results

      Both API v1 and v2 handle the roleId in the same way for different team types.

      Actual Results

      Each version handles the roleId different for Solution Team

      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
              a8cff3407f0b Diego Larangeira
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync