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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.