Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-60203

Unable to remove user from Project Roles in project administration when the username starts with 0

XMLWordPrintable

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? See the corresponding bug report.

      Summary

      Cannot remove user from project roles in project administration > Users and Roles

      Environment

      JIRA v7.1.1

      Steps to Reproduce

      1. Create a new user with username that starts with '0'. Example '06744'
      2. Add user to any project role
      3. Click on the trash icon to remove user from project roles in project administration > Users and Roles

      Expected Results

      User should be removed from the Project Role

      Actual Results

      User is not removed from the Project Role

      Notes

      • This is caused by the request to delete the user automatically dropping the '0' from the username. The Har file shows that the user: 6477 is deleted from the project role, instead of the expected '06477' username.
      • Does not happen on JIRA 6.x

      Workaround

      • Remove the user from project roles in JIRA administration > User Management instead
      • Avoiding the use of numeric usernames, or using the REST API to manually remove the user from the project role:
        curl '<BASE-URL>/rest/api/2/project/XXXX/role/10002?user=06744' -X DELETE -u....
        

              pmandloi@atlassian.com Prateek Mandloi
              tchai Tzu Hau Chai (Inactive)
              Votes:
              11 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: