Jira Automation - Generating channel description when creating a channel

Sia (Nastassia) Sharasheuskaya November 11, 2024

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:

 

2024-11-11_11h40_51.png

This what the resulting channel looks like:

2024-11-11_11h42_48.png

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"}

2 answers

1 accepted

2 votes
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 11, 2024

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.

{
"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

 

 

Sia (Nastassia) Sharasheuskaya November 11, 2024

Amazing! thank you, I went with the message and it works brilliantly!

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 11, 2024

You're welcome. I'm glad it worked.

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2024

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.

Suggest an answer

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

Atlassian Community Events