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?
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
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.