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,293,754
Community Members
 
Community Events
165
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

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
Community showcase
Published in Atlassian Access

Atlassian Access Demo Q&A Recap

Hi Community! Thank you to all who joined our ongoing monthly Atlassian Access demo! We have an engaging group of attendees who asked many great questions. I’ll share a recap of frequently ask...

1,108 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you