Info |
---|
|
This routine is available since SIL Engine™ 2.5.16 for Jira 5.x / 2.6.8 for Jira 6. This routine is available for Jira server and cloud deployment options. |
Syntax
...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | removeUserFromProjectRole(user, project, role) | Package | | Alias | removeUserFromProjectRole | |
...
Description
Excerpt |
---|
|
Removes a single user from a project role if the user is in that role. |
Removes a single user from a project role if the user is in that role.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
User | String | Yes | Username or userkey. | Project key | String | Yes | Key of the selected project. | Role name | String | Yes | Name of the role to add the user to. | |
Return
...
Type
booleanBoolean
Returns "true" if operation succeeded.
Example
Code Block |
---|
admRemoveUserFromProjectRoleremoveUserFromProjectRole("user.3", "TEST", "Developers");
|
...
Note |
---|
The look-up is first made after the userkey, then after the username. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jirauser_roleadmin_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_role_routineroutines |
---|
|