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,556,869
Community Members
 
Community Events
184
Community Groups

How to get assignee and reporter email using from Jira webhook response

Hi,

 

I'm trying to setup a Ruby bot which will send direct message to issue reporter when the issue changed to certain states (`waiting for reporter`) . To send Slack DM I need to match reporters slackID with their email address - is there any chance to get reporter email address using Jira webhook to get this info in JSON which comes in a response?

 

Thanks,

Maciej

 

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 24, 2020 • edited

Hi @maciej.wicher ,

Welcome to the Atlassian Community!

You can find the answer to your question many existing threads, including the below ones:

 

However, in order to summarize:

 This behavior is related to the introduction of the Profile and Visibility settings:

 

This change was needed in order to comply with GDPR and, as a result, you can or cannot see  user emails depending on how they configured  their profile visibility settings.

 

Guidelines for developers are available in the below threads in the developers community:

 

Below you find the expected behavior for each setting:

  • anything set to public will always be visible regardless of the type or caller or the authentication method
  • anything set to the user's organisation will be visible to:
    • users in the UI
    • users doing rest calls authenticating as themselves
    • it won't be visible to connect apps*
    • it won't be visible in webhooks (since they are not authenticated)
  • anything set to "only me and admins" will be visible to:
    • the user when they request themselves (apart from connect apps*)
    • in the user management UI (admin.atlassian.com) it will be visible to admins in the user list (but nowhere else)
    • if its a managed account it might also be accessible to admins through the identity user managment api (not to be confused with the Jira REST API, this is a different  one): https://developer.atlassian.com/cloud/admin/user-management/rest/#auth 
  • customer accounts email will be visibile:
    • to agents in the UI on profile cards
    • to agents in places using user search APIs inside Jira (there is no clearcut rule for which places it is), including the user search REST API, but not the user lookup API
    • it should be visible to all agents everywhere (apart from connect apps*)



* connect apps can apply through ecosystem to use some special api endpoints to get email regardless of privacy settings. This has to be approved by legal and is only for apps in specific use cases

 

For any further question on this topic please either ask in the Developer Community or raise  a request with our Developer Support team.

 

I hope this helps.

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events