This function checks if a user or group of users are members of a project role in the current project.
Multiple user names can also be provided in a comma-separated list of user names, group names or role names. In that case, the function will return true only if all users in the list, groups of the list, and in the roles of the list, are in the given project role for the current project.
isInRole(users, projectRole) #Output: Boolean
Variant where you can additionally define a specific project key.
isInRole(users, projectRole, projectKey) #Output: Boolean
Use cases and examples
Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
---|---|---|---|---|---|
Restrict issue creation per issue type and project role | isInRole() | ||||
Prevent a closed issue from being reopened after resting 1 week closed | isInRole() |