Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
usersWithRoleInProject(role, projectKey) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
assignee in usersWithRoleInProject("Developers", "CRM")


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


Code Block
languagebash
linenumberstrue
reporter in usersWithRoleInProject("Administrators", "HR")


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

UI Text Box
typeinfo

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.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
role

Status
subtletrue
titletext

Text containing a valid project role name.
projectKey

Status
subtletrue
titletext

Text containing a valid project key.



UI Expand
titleOutput

This function returns a 

Status
subtletrue
titleText list



Include Page
DECADIS:_snip_limit_JQL_functions
DECADIS:_snip_limit_JQL_functions


Page properties
hiddentrue


Short description

Returns users with a specific role in a specific project

Output

Status
subtletrue
titletext list

Label





Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJQL function
cqllabel = "jql_func_userswithroleinproject" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged