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 next active user in a given group, for a given round-robin queue.

The queue name is an arbitrary name. The queue is automatically created the first time a queue is used in the function. Each time the function is called on the same pair of arguments (group, queue), a different user in the group is returned.

The queue can be used in different transitions of the same or different workflows within the same Jira instance.

Null is returned if the group is empty.


Code Block
languagebash
titleSyntax
linenumberstrue
nextUserInGroup(group, queue) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
nextUserInGroup("jira-developers", "code-review-queue") 


This example returns the user name of the next user in group jira-developers for the round-robin queue code-review-queue.
Each time the function is called with the same pair of arguments, a different user name is returned.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
group

Status
subtletrue
titletext

Text containing a valid Jira group.
queue

Status
subtletrue
titletext

Any type of text.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellowGreen
titleReady for reviewdone

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



Page properties
hiddentrue


Short description

Returns the name of the next active user in a group.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.2.33

Label