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,456,049
Community Members
 
Community Events
176
Community Groups

How to fetch user information

Hi I would Like to fetch the email ID or their user name of the user who reports the issue 

How can I do it

3 answers

0 votes

Hello @Pradeep A 

Welcome to the Community 
atlassian-community-opengraph.png

If you move the mouse cursor towards the reporter's name in the Jira Issue, you will see the small pop-up window with userid and user's email id. 


Can you elaborate if the scenario is different? 

I hope this is what you are looking for, let me know.

 

Thanks
Prashant Sultania

Note: Upvote, Like or Accept Answer if it resolves your query.

For example, If you are using Azure AD, you have to define some additional information to be sent as (organization, department etc.)

 

Further information at: https://support.atlassian.com/provisioning-users/docs/understand-user-provisioning/

Hi @Pradeep A

Could you provide a little bit more information, i.e. which approach do you intend to use to get the Reporter's email address? Is it Post-Function, Listener or Script Console? 

If you intend to get a reporter's email address, you can even use the Script Console to do this.

Below is an example code for your reference:-

import com.atlassian.jira.component.ComponentAccessor

def issueManager = ComponentAccessor.issueManager
def issue = issueManager.getIssueByCurrentKey("SFFM-1")
def reporter = issue.reporter
log.warn "${reporter.emailAddress}"

Below is a print screen of the Script Console output:-

reporter_email.png

Thank you and Kind Regards,
Ram

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events