Hey guys,
So what I would like to achieve is to have a Slack channel hyperlinked in automation message sent to another Slack channel. In general the message should look like:
You can find more details in this channel: #channel_name_here.
Whole #channel_name_here is taken from custom field in Jira, so I did {{issue.customfield_id}}, but it sends the channel name as normal text, it's not hyperlinked in blue. Goal is to have this hyperlinked so you can get sent to the channel easily when you tap on in, instead of browsing through channels looking for this one.
Is this achievable in any way?
Channel exists already, so I thought it will automatically pick-up the hyperlink, but seems like it doesn't.
Any ideas? or workarounds?
Hi @Maciej Cielec , welcome to the Community!
The body of Slack messages in Automation rules uses Slack's app surface formatting. For links to public channels , it will use the ID. This is separate from the channel name - click through for instructions on Slack if this isn't what's already in your custom field. The example they give in the documentation of the ID format is C024BE7LR.
So - once you've got the channel id in a custom field (not the channel name!), you can call it in the body of your Slack message automation action like this:
You can find more details in this channel: <#{{issue.customfield_id.text}}>.
Two things are happening that I'd like to call attention to -
Cheers!
Daniel
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.