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'}
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
Not really what I need it, but you gave me an idea, I retrieve the user via `displayName` seems to work.
thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.