Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns the name of the user in a given project role (in the current issue's project) with the lowest number of unresolved issues.

An empty text "" will be returned if there is no user in the project role.

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


Code Block
languagebash
titleSyntax
linenumberstrue
leastBusyUserInRole(projectRole) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
leastBusyUserInRole("Developers")


This example returns the user among all users of the Developers project role in the current project with the lowest number of unresolved issues across all Jira projects, e.g.:

admin.istrator



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

Status
subtletrue
titletext

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a specific project key.


Code Block
languagebash
titleSyntax
linenumberstrue
leastBusyUserInRole(projectRole, projectKey) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
leastBusyUserInRole("Developers", "CRM")


This example returns the user among all users of the Developers project role in the CRM project with the lowest number of unresolved issues across all Jira projects, e.g.:

admin.istrator




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

Status
subtletrue
titletext

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.
projectKey

Status
subtletrue
titletext

Text containing a valid project key.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a specific JQL query to limit the scope of unresolved issues.


Code Block
languagebash
titleSyntax
linenumberstrue
leastBusyUserInRole(projectRole, projectKey, jqlQuery) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
leastBusyUserInRole("Developers", %{issue.project.key}, "type = Bug"})


This example returns the name of the user, who is a member of the current issues' project role Developers and has the lowest number of unresolved Bugs assigned across all Jira projects, e.g.:

admin.istrator


Code Block
languagebash
linenumberstrue
leastBusyUserInRole("Projektmitarbeiter (intern)", %{issue.project.key}, "project =" + %{issue.project.key})


This example returns the name of the user, who is a member of the current issues' project role Developers and has the lowest number of unresolved issue assigned in the current Jira projecte.g.:

admin.istrator



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

Status
subtletrue
titletext

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.
projectKey

Status
subtletrue
titletext

Text containing a valid project key.
jqlQuery

Status
subtletrue
titletext

Text containing a valid JQL query. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext


UI Text Box
typetip

This function is useful if you want to automatically assign issues to the least busy user using a post function or automation rule, e.g.:



Page properties
hiddentrue



Status
Tech review

Status
colourYellowGreen
titleReady for reviewdone

Style guide

Status
colourGreen
titledone

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



Page properties
hiddentrue


Short description

Returns the name of the user in a given project role with the lowest number of unresolved issues assigned.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.2.33

Label