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.


nextUserInGroup(group, queue) #Output: Text



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.



Parameters used in this function

ParameterInput (data type)Description
group

Text containing a valid Jira group.
queue

Any type of text.



This function returns a



Use cases and examples



Parser function cloud
Map(error)
NotesNot possible to access to information about Groups.






Status
Tech review

Style guide




Short description

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

Output

Available since

Label