Hi all,
I have an automation that generates a channel when incidents are created, I'm trying to do the following:
Either update the channel description so that it contains some confluence links to runbooks
OR have an introductory message be posted into this channel once the channel is created.
Either is good.
Here is what I have so far and it works:
This what the resulting channel looks like:
This is what I'm trying to insert but it is not working, the additions are not showing up:
{"channel":"{{webResponses.first.body.channel.id}}","purpose":"{{issue.key}} incident response - https://company.atlassian.net/browse/{{issue.key}}. Please use a huddle on this channel for any voice comms. Incident Response Runbook: https://company.atlassian.net/wiki/spaces/KL/pages/691470338/Incident+Runbook Hotfix Branching and Release Runbook: https://company.atlassian.net/wiki/spaces/ABD/pages/149159937/Production+Release+Process#Sequence-of-events-for-a-Hotfix"}
Hello @Sia (Nastassia) Sharasheuskaya
If you want to add the Confluence links to the channel description, you need to ensure that the purpose
field in your JSON payload is formatted correctly and does not exceed Slack's character limit for channel descriptions. I see no problem in your json request but it's image, so let's put it here:
{
"channel": "{{webResponses.first.body.channel.id}}",
"purpose": "{{issue.key}} incident response - https://company.atlassian.net/browse/{{issue.key}}. Please use a huddle on this channel for any voice comms. Incident Response Runbook: https://company.atlassian.net/wiki/spaces/KL/pages/691470338/Incident+Runbook Hotfix Branching and Release Runbook: https://company.atlassian.net/wiki/spaces/ABD/pages/149159937/Production+Release+Process#Sequence-of-events-for-a-Hotfix"
}
If adding links to the description is not feasible due to character limits, you can post an introductory message in the channel instead.
Send web request
action in your automation rule.Web request URL
to https://slack.com/api/chat.postMessage
.POST
HTTP method.{
"channel": "{{webResponses.first.body.channel.id}}",
"text": "{{issue.key}} incident response - https://company.atlassian.net/browse/{{issue.key}}.\nPlease use a huddle on this channel for any voice comms.\n\nIncident Response Runbook: https://company.atlassian.net/wiki/spaces/KL/pages/691470338/Incident+Runbook\nHotfix Branching and Release Runbook: https://company.atlassian.net/wiki/spaces/ABD/pages/149159937/Production+Release+Process#Sequence-of-events-for-a-Hotfix"
}
I hope I am not missing anything, and this was helpful
Amazing! thank you, I went with the message and it works brilliantly!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome. I'm glad it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @Sia (Nastassia) Sharasheuskaya
So you have an automation that creates a channel based on incident creation.
You update the incident with information and you want to have the Slack channel purpose updated
So you need to have an automation in Jira that triggers on update of the incident issue, based on linked content
Unfortunate, there is no automation trigger available for this action, see open feature request AUTO-64
The option you can do is to have another custom field that you set on linking to a Confluence, trigger the automation on rule on change of this field.
Then the question is, does the Slack API, have an option to update an existing channel description.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.