groupName()

Group Id

This function returns the name for a given Atlassian Group ID. In case the given ID is not valid or empty, null is returned. 

Bash
groupName(groupId) #Output: Text list
Examples

Parser expression

Description

Bash
%{groupName("7d6e5c05-30e9-4790-8462-df6d8da1c39b")}

This example returns the name of the group with ID "7d6e5c05-30e9-4790-8462-df6d8da1c39b", e.g.: 

jira-users-documentation

Bash
%{groupName(%{issue.cf10058.id})}

This example returns the name of the group (for example, from a group picker custom field with a single group), e.g:

documentation-reviewers

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

groupId

text

Text containing a valid Atlassian group ID.

Output

This function returns a text LIST


Group Id list

Variant for multiple groups. In case one of the given IDs is not valid or empty,  null is returned to its position on the list. 

Bash
groupName(groupIdList) #Output: Text list
Examples

Parser expression

Description

Bash
%{groupName(["7d6e5c05-30e9-4790-8462-df6d8da1c39b","4c821246-22e7-46a7-b0b8-c0cf181aeaeb"])}

This example returns the names of the groups with the group IDs "7d6e5c05-30e9-4790-8462-df6d8da1c39b" and "4c821246-22e7-46a7-b0b8-c0cf181aeaeb", e.g.: 

jira-users-documentation, confluence-users-documentation

Bash
%{groupName(toStringList(%{issue.cf10057.id}))}

This example returns the names of the groups (for example, from a group picker custom field with multiple groups), e.g:

Human Resources, Marketing, Sales

To achieve this, the following function is used:

Bash
%{groupName([%{issue.cf10058.id},%{issue.cf10059.id}])}

This example returns the names of the groups (for example, from two group picker custom fields with a single group), e.g:

documentation-reviewers, product-owners

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

groupIdList

text list

Any valid text list containing Atlassian group IDs.

Output

This function returns a text list


(books) Use cases and examples