We have an advanced Filter, "Recent Customer Issues" which uses JQL. And we're successfully using that Filter in a Dashboard. Now, I need to create an email which includes the results of that same Filter, in addition to some other text. I'm trying to avoid copy-and-pasting the JQL from the filter, so the Dashboard and Email will remain consistent.
My first attempted solution is using Global Automation, and the Lookup Issues action. Is there a way that I can reference that Filter in the Lookup Issues? Trying {{Recent Customer Issues}} in the JQL field applies no filter.
Thanks,
Dan
Hi @Dan Rohtbart -- Welcome to the Atlassian Community!
If you have used a saved filter for your dashboard gadget, you can use that same filter in the automation lookup issues action by referencing the filter id.
View your saved filter to note the id in the browser address bar URL, and then use that in the lookup JQL as:
filter = 12345
Please note: automation rules actions, branches, and triggers are limited to processing 100 issues. If your filter returns more the result will only contain the first 100 issues.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Even better, you can combine filters:
(filter = 10041) or (filter = 10042)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill, is it possible to use the size (as in issue count) of a given filter?
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot get the count by running a query directly with the Jira UI, but you can do so with other methods:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bill,. I have tried the first option within an automation rule and found 2 problems... (1) I get one email per issue returned from the list... I would prefer all issues listed in 1 email, couldn't figure out how to. (2) the size is returning 0. See below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill, after a few trials I figured it out... here is my rule with the count (size) of the issue list in the Subject line. Thanks for your help !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to confirm, are you using Jira Cloud or the Server/Data Center version?
It appears you are using Cloud, so...
With this type of rule you do not use JQL with the scheduled trigger. Instead you only use the Lookup Issues action, and then there will be one email, referencing the {{lookupIssues}} smart values.
I noted you referenced the {{issues}} smart value, noting the plural word. That smart value is used with Jira Server/Data Center for bulk-issue processing, whereas Cloud uses Lookup Issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill, yes we use Jira Cloud. And yes, we used {{#LookupIssues}}. Thanks for helping out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dan, have you looked into Group Subscriptions.
See: Subscribe to search results on this page
Work with Search Results
Hope this helps.
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.