Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add reporter emailAddress in the Webhook payload for issue created

Paul Tancre
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

Hello Community, 

I am building a rule around email address domain, and I would need to have (like the rest API provide) the emailAddress of the reported in the payload of the webhook event to customize the issue given the email address domain.

'reporter': {'self': 'https://labelbox.atlassian.net/rest/api/3/user?accountId=61f4744faeaacb007227e7e3',
   'accountId': 'xxx',
   'emailAddress': 'xxx@test.com',
   'avatarUrls': {'48x48': '',
    '24x24': '',
    '16x16': '',
    '32x32': ''},
   'displayName': 'John Doe',
   'active': True,
   'timeZone': 'Europe/London',
   'accountType': 'atlassian'}

 

1 answer

0 votes
Aaron Pavez _ServiceRocket_
Community Champion
February 26, 2025

Hi @Paul Tancre 

You can use this JSON in the The action and:edit issue fields 

{
"fields": {
"reporter": {{webhookResponse.body.accountId.asJsonObject("id")}}
}
}

That will get you the email from the user ID.

Regards

 

Paul Tancre
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

Not really what I need it, but you gave me an idea, I retrieve the user via  `displayName`  seems to work.

thank you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events