Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create an automation that notifies my Slack channel when a Sprint starts?

Kauê July 22, 2024

I need it to notify the issue name, assignee, link and the current sprint period. Is this possible? 

2 answers

1 accepted

2 votes
Answer accepted
Bill Sheboy
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.
July 22, 2024

Hi @Kauê -- Welcome to the Atlassian Community!

Yes, that is possible with automation rules.

As you describe just starting out with automation, I recommend reviewing this overview first: https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation

 

Next, your rule could use the Sprint Started trigger: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Sprint-created--started--or-completed

However that will not return the issues...just the sprint info.  And that info may be used to find the issues.  Let's assume you want to send one single message with the list of issues in the sprint.  And so the Lookup Issues action can be used to gather the issues with JQL: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues

Finally you may use the Send Slack Message action to send the issue data, referencing the fields needed with smart values: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Putting it all together, the rule may look like this:

  • trigger: Sprint Started
  • action: Lookup Issues, with JQL such a below, substituting in your project's name
project = yourProjectName AND sprint = {{sprint.id}} ORDER BY Key ASC
  • action: Send Slack Message, using the lookup issues result, such as this:
Sprint "{{sprint.name}}" started, running from {{sprint.startDate.jiraDate}} to {{sprint.endDate.jiraDate}}.

Here are the issues:
{{#lookupIssues}}
* {{key}}: {{summary}} -- assigned to {{assignee.displayName}} -- {{url}}
{{/}}

 

Kind regards,
Bill

Kauê July 22, 2024

Bill, thank you very much for your patience in explaining it to me, it worked!!! Thanks for the materials, I'll definitely take the time to look into it further, thanks Jira community.

Like Bill Sheboy likes this
0 votes
shib saha
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.
July 22, 2024

Hi @Kauê , You can create the automation rule as follows 

Trigger: Sprint Started , select board and sprint name

Action: Send Slack Message

In the message section use the smart values to send the necessary info.

Thanks!

 

 

Kauê July 22, 2024

That's the problem, unfortunately. I don't work much with automation and I'm just starting out, so I need some guidance on the rules I need to use to pull in the necessary data.

Suggest an answer

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

Atlassian Community Events