Forums

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

[Automate] Include Sprint Details in Automation Rule

Matt Baum April 14, 2023

I've created an automation to message a Slack channel whenever a Sprint is completed, but I'd like to include details about the Sprint in the Slack message. Ideally we would include the following:

  • Sprint Name
  • URL to Sprint
  • List of all issues completed in the Sprint

I've tried using Smart Values, but because they are based on Issues and not Sprints, I am having trouble using them for the above purposes. Does anybody know if this is possible?

1 answer

2 votes
Mikael Sandberg
Community Champion
April 14, 2023

Hi @Matt Baum,

Welcome to Atlassian Community!

You should be able to do this using smart values, here is a link to the ones related to the sprint and you should be able to get the list of issues by doing an issue lookup to get the issues in the sprint and then use the list option for smart values.

Matt Baum April 14, 2023

Thank you so much! The sprint smart values work great, but I'm just having trouble figuring out the issue lookup part of this (apologies, I'm quite new to Jira).

Attached is a screenshot of what I have so far, any idea what I'm missing? In addition to the names of each issue in the sprint, can I also include the URLs to each of those issues in this list?Screenshot 2023-04-14 at 1.07.32 PM.png

Mikael Sandberg
Community Champion
April 14, 2023

Yes, you can include the URL to the issue, something like this should do it:

{{#lookupIssues}}

* [{{key}}|{{issue.url}}] {{issue.summary}}

{{/}}

I think the reason you are having issues with the lookupIssue is because there is no .name field.

Matt Baum April 14, 2023

Hm, no luck. I copied your smart value exactly as you wrote it, but it's not returning anything:

Screenshot 2023-04-14 at 2.57.50 PM.png

*{{sprint.name}}* is working correctly, but nothing else is coming through after that into the slack message. Any ideas?

Mikael Sandberg
Community Champion
April 14, 2023

Here is what I would do, after the lookup issue component, add a log action component and check the size of lookupIssue by adding this to the log action:

Size: {{lookupIssues.size}}

Suggest an answer

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

Atlassian Community Events