usersWhoTransitioned()

Current issue

This function returns the names of the users who transitioned the current issue from a given status to another given status, ordered by ascending transition time.

An empty text as an argument is interpreted as any status.

Bash
usersWhoTransitioned(fromStatus, toStatus) #Output: Text list

Examples

Parser expression

Description

Bash
last(usersWhoTransitioned("Open", "In Progress"))

This example returns the name of the user who was the last to execute the transition "Start Progress", e.g.:

admin.istrator

To achieve this the following functions are used:

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

fromStatus

text

Text containing a valid status name.

toStatus

text

Text containing a valid status name.

Output

This function returns a text list

Issue key

Variant where you additionally define a specific issue key.

Bash
usersWhoTransitioned(fromStatus, toStatus, issueKey) #Output: Text list

Example

Parser expression

Description

Bash
count(usersWhoTransitioned("Open", "In Progress", %{parent.key}))

This example returns the number of times the transition "Start Progress" has been executed in the parent issue, e.g.

4

To achieve this the following functions are used:

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

fromStatus

text

Text containing a valid status name.

toStatus

text

Text containing a valid status name.

issueKey

text

Text containing a valid issue key. Usually field codes are used.

Output

This function returns a text list

📚 Use cases and examples

Use case JWT feature Workflow function Field type Automated action Parser functions