This article explains how to add a user to a project role using the app the Run CLI Actions in Jira on Server instance app on server.
Instructions
For this scenario, use the addProjectRoleActors action and userId parameter where:
- addProjectRoleActors: adding adds users or groups to a project role., and,
- userId: User id provides the User ID for user management and other actions. For some actions, a comma-separated list of idsIDs is required.
Note |
---|
Ensure that the project role(s) |
...
exists on the global level. |
- The below Consider the following example shows a project key ", JIRACLI" , that has a role defined as Jira_users.
Execute the below CLI action by navigating as jira-software-users: Navigate to Admin > Manage Apps > Run Actions to execute the following CLI action:
Code Block theme Midnight --action addProjectRoleActors --project "JIRACLI" --role "jira_-software-users" --userId "Lucas"
The result of the above
...
action
...
is similar to
...
the following screenshot:
...
Info | ||
---|---|---|
| ||
|
...
|
...
|
...
|
...
|
...
|