Status
Tech review

Style guide




Short description

Returns the name of the active user playing a project role with the name projectRoleName in the current issue's project

Output

Available since




This function returns the name of the active user playing a project role with the name projectRoleName in the current issue's project, and has the lower number of issues with resolution empty assigned; or "" if there isn't any user in the project role.

Parameter projectRoleName can be a comma-separated list of project role names, returning the least busy users among the project roles.


leastBusyUserInRole(string projectRoleName) #Output: Text



Parser expressionDescription


leastBusyUserInRole("Developers")


This example returns the user playing the role Developers in the current project with the least number of unresolved issues in all the Jira instance assigned.



Parameters used in this function

ParameterInput (data type)Description
xxx

Parameter description.



This function returns a




Variant where you can additionally define projectKey.


leastBusyUserInRole(string projectRoleName, string projectKey) #Output: Text



Parser expressionDescription


leastBusyUserInRole("Developers", "CRM")


This example returns the user playing role Developers in project with key CRM with the least number of unresolved issues in all the Jira instance assigned.



Parameters used in this function

ParameterInput (data type)Description
xxx

Parameter description.
xxx

Parameter description.



This function returns a




Variant where you can additionally define jqlQuery.


leastBusyUserInRole(string projectRoleName, string projectKey, string jqlQuery) #Output: Text



Parser expressionDescription


leastBusyUserInRole("Developers", %{00018}, "project = " + %{00018})


This example returns the user playing role Developers in the current project, with the least number of unresolved issues in current project assigned.

%{00018} is field code for Project key.



Parameters used in this function

ParameterInput (data type)Description
xxx

Parameter description.
xxx

Parameter description.
xxx

Parameter description.



This function returns a