Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.
- This routine is available starting with katl-commons 2.0.6.
- This routine is available for Jira server and cloud deployment options.
DescriptionReturns "true" if the user has a certain role on the specified project.
This routine exists starting with Power Scripts for Jira 2.0.6. Before that, you have to get the roles of the user on the project, then check if the necessary role is in the returned list.
|User||String||Yes||Username or userkey of the user in question.|
Key of the selected project.
Name of the role that is verified.
Returns "true" if the user has the role on a project and "false" otherwise.
Example 1 (Server)
Example 2 (both cloud and server versions)
Example 3 (Cloud)
On the server the look-up is first made after the userkey, then after the username. On cloud, the look-up is done only by userkey.