Is it possible to display project lead username in a custom field ?

Mani February 23, 2018

I am trying to display project lead in a Scripted custom field.

 

Inline Script.PNG

 

Any help would be appreciated.

 

3 answers

1 vote
Mani February 24, 2018

Thank you very much @Nic Brough -Adaptavist- @Alexey Matveev

Here is what worked for me:

issue.getProjectObject()?.getProjectLead()

 

 

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 24, 2018

This one works fine for me

issue.getProjectObject()?.getProjectLead()?.getDisplayName()

What is your Jira version and what is the error?

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2018

What does the tooltip show when you hover the cursor over the red cross to the left?

Mani March 12, 2018

@Nic Brough -Adaptavist- surprisingly now it is not showing the red cross. It is now throwing a warning if I use the initial script. 

 

Below is the warning: New Error..PNG

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2018

getLead is deprecated and will go away in a later version.  It's just warning you that you should not use it.  Try .getProjectLead instead

Suggest an answer

Log in or Sign up to answer