slack-plugin icon indicating copy to clipboard operation
slack-plugin copied to clipboard

Support messages with blocks and attachments

Open nhurel opened this issue 1 year ago • 2 comments

What feature do you want to see added?

Hello, When reading slack api documentation, it looks possible to send both blocks and attachments to the payload : https://api.slack.com/messaging/composing/layouts#building-attachments

However, the jenkins plugin only sends one or the other (giving priority to attachments).

Would it be possible to add the possibility to send blocks and attachments in a single message ?

Thank you

Upstream changes

No response

nhurel avatar Oct 13 '22 15:10 nhurel

What's the reason for it?

timja avatar Oct 13 '22 16:10 timja

Attachments being legacy, I try to use blocks as much as I can but slack doesn't manage long messages formatted with block as good as it does with attachments. So I'd like to be able to format build information using block api but attach big chunk of text (eg a changlog) as an attachment

nhurel avatar Oct 13 '22 16:10 nhurel

awesome ! Thank you both for the quick resolution.

nhurel avatar Oct 20 '22 12:10 nhurel