This JQL function returns users with a certain role in a certain project.


usersWithRoleInProject(role, projectKey) #Output: Text list



Parser expressionDescription


assignee in usersWithRoleInProject("Developers", "CRM")


This example returns all issues where the current assignee belongs to the Developers role in the CRM project.


reporter in usersWithRoleInProject("Administrators", "HR")


This example returns all issues where the current reporter belongs to the Administrators role in the HR project.

This function returns users that belongs to the Administrators role in the PR project, but the whole JQL will return every issue whose reporter is in the returned list, even if it returns an issue from a different project.




Parameters used in this function

ParameterInput (data type)Description
role

Text containing a valid project role name.
projectKey

Text containing a valid project key.



This function returns a 





Short description

Returns users with a specific role in a specific project

Output

Label





Use cases and examples




Status
Tech review

Style guide