Forums

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

Created a incoming webhook request for the PR and need to fetch the email address of the user?

Sagar s gowda October 17, 2024

 

Created a incoming webhook request for the PR and need to fetch the email address of the user, who triggered the event or webhook add need to sent the email to the user using smartvalues. 

How to fetch the email address of the user who created the PR in Bitbucket and need to send an email to the user using JIRA Automation. Please help me with this.

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 17, 2024

Hi @Sagar s gowda -- Welcome to the Atlassian Community!

Short answer: you may need to call the Bitbucket REST API to get some of that information in the rule.

The available PR-related triggers are PR Created, PR Declined, and PR Merged: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/

As those originate from outside of Jira, the {{initiator}} smart value will likely be the Automation for Jira user, and not the person who took the PR action.  You could use the Send Web Request action to call the Bitbucket REST API to find the person / user, and then use that to find the Jira user account.

Kind regards,
Bill

Sagar s gowda October 18, 2024

Hi @Bill Sheboy  Thanks for the response. Could you please elaborate and can you add steps need to be taken to get this data for my automation rule. It will help me a lot.

 

Thanks in Advance

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2024

I am not using the Bitbucket REST API at this time, and I am not working in your Jira site / development environment to know its configuration.  I recommend working with your team's engineers and your Jira Site Admin to implement this rule, step by step, and test it.

I can provide this how-to article for calling a REST API endpoint from an automation rule using the Send Web Request action: 

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Suggest an answer

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

Atlassian Community Events