I've set up an alert in Slack as shown in image (1) and received the result in image (2). Is there a way to count the number of unsolved tickets by assignee and compile a list of ticket IDs into a single message, rather than sending multiple messages for each ticket ID?
image 1
image 2
Depending upon the JQL in your Scheduled trigger, this is likely possible.
You could remove the JQL from the trigger, just having it run every 5 minutes. Then use the Lookup Issues action to first check if there are issues for which to send notifications, and then branch over the distinct assignees to send the message.
Please see this article which describes the same technique, except for sending an email, and you may modify it to meet your needs: https://confluence.atlassian.com/jirakb/automation-to-send-email-only-once-per-assignee-1310985609.html
Regarding the count of issues, once you branch for each assignee and lookup for only their issues, the count will be:
{{lookupIssues.size}}
Kind regards,
Bill
Thanks @Bill Sheboy
Could you please advise on how to hyperlink the key ID instead of displaying the full URL? Additionally, can we add a new line for each ID?
My markdown:
- Ticket {{lookupIssues.key}}: {{lookupIssues.url}}
The result:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have not used Slack in a while and I recommend checking their documentation on hyperlink formatting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Nguyen Thanh Tien
From the screenshots, it looks like your current setup sends separate Slack messages for each unresolved ticket. To compile all unresolved tickets into a single Slack message, you can use the "Lookup Issues" action in Jira Automation to gather all unresolved tickets and send them in one message.
Use a Scheduled Trigger:
Set the automation to run every 5 minutes (or your preferred interval).
Lookup Issues Action:
Replace the branch with "Lookup Issues" and use JQL like:assignee = currentUser() AND resolution = Unresolved
Send a Slack Message:
Use the {{#lookupIssues}}
smart value to list unresolved tickets in one message. For example:
@here Hi team, here is a list of unresolved tickets for {{assignee.displayName}}:
{{#lookupIssues}} - <{{url}}|{{key}}>: {{summary}} {{/}}
This will send one Slack message that includes a list of unresolved tickets assigned to the user.
note: lookup issues functionality has limits to perform
If you need more advanced control over unresolved tickets, you may try SLA Time and Report. It allows you to:
Track Unresolved Tickets: Set up custom SLAs to track how long a ticket has been unresolved and trigger Slack notifications when SLAs are breached or near breached.
Automate Reporting: Use the Report Scheduler to send regular reports of unresolved tickets to email, keeping your team informed.
Slack Integration:
Ensure Slack is integrated with Jira via Jira Settings > Apps > Find New Apps.
Define Your SLA:
Set Up Slack Notifications:
Test and Customize:
For further customization or more sophisticated tracking, SLA Time and Report is a good tool to consider.
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.