You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

This JQL function is used for searching for users with a certain role in a certain project.

Syntax
usersWithRoleInProject(role, projectKey) #Output: User list
Examples
Parser expressionDescription
assignee in usersWithRoleInProject("Developers", "CRM")
This example returns all issues whose assignee belongs to the Developers role in the CRM project.
reporter in usersWithRoleInProject("Administrators", "PR")

This example returns all issues whose reporter belongs to the Administrators role in the PR project.

Results remark

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

Additional information

Parameters used in this function

ParameterInput (data type)Description
role

TEXT

A valid project role.
projectKey

TEXT

A valid project key.

Output

This function returns a USER LIST.