-
Bug
-
Resolution: Duplicate
-
Highest
-
None
-
7.2.0, 7.2.3
-
7.02
-
4
-
Severity 3 - Minor
-
3
-
Summary
It's not possible to edit the Component Lead and assign it to specific users whose usernames have been renamed before. Below error message is shown:
The user "username" does not exist.
Steps to Reproduce
- Have a project and some Components.
- Have a user and rename it (i.e from John to A).
- Edit the component lead for a component and set it to the renamed user.
- Receive a "The user "username" does not exist." message.
Expected Result
Able to assign A as the new Component Lead for the selected component.
Actual Result
Receive a "The user "username" does not exist." error message.
Workaround
Update the component lead using REST API:
curl -D- -u admin_username:admin_password -X PUT --data "{\"leadUserName\": \"<user_name>\"}" -H "Content-Type: application/json" <JIRA_URL>/rest/api/2/component/<component_ID>
<user_name>, <JIRA_URL>, and <component_ID> are to be replaced accordingly
The command is to be run by a JIRA admin and he must authenticate using his admin_username and admin_password
Tips
In order to quickly get <component_ID> via REST API:
- Access this URL replacing <project_Key> with actual project key:
<JIRA_URL>/rest/api/2/project/<project_Key>
- Search for component/ and get the ID of the right component:
/rest/api/2/component/10200","id":"10200","name":"component 1"
In this example the component with name "component 1" has ID 10200
- duplicates
-
JRASERVER-62649 Changing the Component Lead of an existing Component throws 'the user <username> does not exist' on save due to mismatch in user key and username
- Closed
- is related to
-
JRASERVER-60467 Unable to assign certain user as a Component Lead
- Closed
- relates to
-
JRASERVER-60778 Unable to edit a component to set a user with uppercase characters in their username as Component Lead
- Closed
- was cloned as
-
MNSTR-335 Loading...