Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

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.


Code Block
languagebash
titleSyntax
linenumberstrue
componentLeads(components) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
 componentLeads("UI") 


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

admin.istrator


Code Block
languagebash
linenumberstrue
 componentLeads(%{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



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
components

Status
subtletrue
titletext

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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a project key


Code Block
languagebash
titleSyntax
linenumberstrue
componentLeads(components, projectKey) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
componentLeads("Web Portal", "CRM") 


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

admin.sitrator



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
components

Status
subtletrue
titletext

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

Status
subtletrue
titletext

Text including a project key.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_componentleadcomponentleads" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the user name(s) of specified component leads

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title3.0.1

Label