This function returns the user name of a component lead of a specified component.

You can also provide a comma-separated list of components and the function returns a comma-separated list of user names.

The output will contain duplicate user names if the same user is a lead of more than one component.

Syntax
componentLeader(components) #Output: Text
Examples
Parser expressionDescription
 componentLeader("UI") 

This example returns the name of the component lead of the UI component associated with the current issue, e.g.

admin.istrator

 componentLeader(%{issue.components}) 

This example returns a comma-separated text with the user names of the all component leads for components associated with the current issue, e.g.:

admin.istrator, bob.smith

Additional information

Parameters used in this function

ParameterInput (data type)Description
components

TEXT

Text including a component name or a comma-separated list of component names.
Output

This function returns a TEXT


Variant where you can additionally define a project key

Syntax
componentLeader(components, projectKey) #Output: Text
Examples
Parser expressionDescription
componentLeader("Web Portal", "CRM") 

The function returns the user name of the Web Portal component lead for the CRM project, e.g.:

admin.sitrator

Additional information

Parameters used in this function

ParameterInput (data type)Description
components

TEXT

Text including a component name or a comma-separated list of component names.
projectKey

TEXT

Text including a project key.
Output

This function returns a TEXT


Use cases and examples