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
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.ComponentAccessordef issueManager = ComponentAccessor.issueManagerdef issue = issueManager.getIssueByCurrentKey("SFFM-1")def reporter = issue.reporterlog.warn "${reporter.emailAddress}"
Below is a print screen of the Script Console output:-
Thank you and Kind Regards,Ram
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/
Hello @Pradeep A Welcome to the Community
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.
ThanksPrashant Sultania
Note: Upvote, Like or Accept Answer if it resolves your query.
It looks like you're new here. Sign in or register to get started.