Hello,
Sometimes, our team has tickets that carry over from one sprint to the next.
For example:
My Product Owner is asking if there is a way to create an Automation that would send her a list or report of issue type: Story tickets that have been in 3 or more sprints, so we can try to proactively target finishing the last bits of work needed in order to be able to close them.
Is anyone aware of a way to do this?
I think I've found a way to set up the "When" and "If" portions of the rule, but am unsure of how to set up the email action to include some kind of a report of the search results.
If the automation is not possible, I suppose I could just provide her with a Saved Filter, but an automated report email would be awesome!
UPDATE as of 2024-May: the solution with the Lookup Issues action will not work with Jira Data Center as the Sprint field is not supported in the results yet: link to suggestion to add the field. Please see the bottom of this thread for other solution approaches.
You are using Jira Data Center, correct?
If so, you can do what you ask using the Lookup Issues action and smart value, list filtering...assuming you are only looking at 100 issues, or fewer. For example:
project = yourProjectName AND sprint IN closedSprints()
Issues in multiple sprints:
{{#lookupIssues}}
{{#if(sprint.join("~").split("~").size.gt(2))}}* {{key}} -- {{summary}}{{/}}
{{/}}
How that works...
Please look here to learn more about those action / rule features:
Kind regards,
Bill
Bill, thank you SO much for your help! You got me a lot closer than I was before!
I'm having some challenges with my smart values in my email body though. It is not generating any content in the body of the email, unfortunately.
Any chance you see what I am doing wrong? Thanks again!
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.
Your expression is missing the pound signs before lookupIssues and before the if() expression.
Please review my earlier post, add the missing characters, and then re-test. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Bill. Sorry, I should have explained that I tried that first.
When I add the pound signs, the audit log says the rule was executed successfully - but the email message comes through blank.
Any ideas on how to fix this issue? Thank you for all of your help so far!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, for my mistake: you are using Jira Data Center, and the lookup issues action does not yet contain the sprint field (which I find surprising). Here is the suggestion to add the other fields to lookup issues: https://jira.atlassian.com/browse/JIRAAUTOSERVER-877
The only fields currently supported are shown here: https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html#Jirasmartvaluesissues-lookupissueslookupIssues
For workarounds...
Please try the first workaround and let me know what happens.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Bill! I was able to use the branch JQL as a way to make this work. I appreciate your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Amy Sliwinski ,
In case this is helpful to other users, and based on my experience, you can find what you're trying to achieve using Notification Assistant for Jira Cloud.
Hope it helps.
Cheers,
Victor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use something like below into JQL search
issueType = Story AND resolution = Unresolved AND Sprint in closedSprints() AND sprint in openSprints()
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.
You could use the Jira JQL Filter subscription feature for your use-case. The only downside is that you would need to update the JQL every-time you create a new Sprint.
Cheers
Ajay
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.
Hey Amy,
This is tough as the closedSprints() field doesn't support anything other than "IN , NOT IN" as you can see here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.