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.


componentLeader(components) #Output: Text



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



Parameters used in this function

ParameterInput (data type)Description
components

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



This function returns a




Variant where you can additionally define a project key


componentLeader(components, projectKey) #Output: Text



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



Parameters used in this function

ParameterInput (data type)Description
components

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

Text including a project key.



This function returns a



Use cases and examples



Parser function cloud
Map(error)
NotesNot possible to replicate because the only available component's properties are ID and name.






Status
Tech review

Style guide




Short description

Returns the user name(s) of specified component leads

Output

Available since

Label