Forums

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

How do I mention the PR author in the slack message?

Maria S_
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!
October 23, 2024

I am trying out the `slack-notify` bitbucket pipe (

https://bitbucket.org/atlassian/slack-notify/src/master/) since the BitBucket Cloud for Slack app has a limited set of triggers for sending a slack notification and I require some custom triggers.

I want to use the `slack-notify` pipe to trigger a slack notification that mentions the author of the pull request. Typically you could be able to get the author's email via BitBucket APIs and then look up the slack user by email but due to privacy restrictions, this is not allowed by the BitBucket APIs for my workspace. However, BitBucket Cloud for Slack app is able to access the slack user tag of the author by providing a slash command for logging in and connecting their slack account with their BitBucket profile. 

Is there a way to leverage this connection and mention the author via slack username, by using the `slack-notify` pipe?

 

 

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2024

Hi @Maria S_ .
To mention the author via slack username, please check this answer.

Pipe allows you to use PAYLOAD_FILE, where you could add all the data supported by Slack Block Kit.

Regards, Igor

Suggest an answer

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

Atlassian Community Events