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.

Syntax
nextUserInGroup(group, queue) #Output: Text
Examples
Parser expressionDescription
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.
Additional information

Parameters used in this function

ParameterInput (data type)Description
group

TEXT

Text containing a valid Jira group.
queue

TEXT

Any type of text.
Output

This function returns a TEXT


Use cases and examples