Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,434
Community Members
 
Community Events
176
Community Groups

How do you add custom field of assignee's email address?

Hi all, 

I'd like to add a custom field of assignee's email on the issue filter result list. 

Is there any way to achieve it? I looked at the plugin "Script Runner" to see if it would have a function to make it work. 

Any suggestion would be appreciated.

Thank you in advance.

Jaesang 

1 answer

1 accepted

0 votes
Answer accepted

ScriptRunner can do it.  

Add a "scripted field" called something like "assignee email" (you don't have to put this on the issue screen to get this to work)

For the script, you need to read the assignee, get their email from the directory and return it.  As plain text, this would be something like

return issue.getAssignee().getEmailAddress()

(This is from memory, you might want to check the API docs.  And possible get a bit more clever with formatting, such as returning html, and using a mailto: prefix so the address can come out as a link)

 

Please bear in mind a lot of people don't want this exposed, and make sure you never plan to put your Jira out on the internet, as the addresses will be added to spam lists.

Thanks a lot Nick for your answer, I'll try it. 8)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events