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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,953 views 11 5
Join discussion

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