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:
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?
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hm, no luck. I copied your smart value exactly as you wrote it, but it's not returning anything:
*{{sprint.name}}* is working correctly, but nothing else is coming through after that into the slack message. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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}}
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.