Forums

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

assistance with JQL query for sending an email based on ticket threshold

Help Desk December 18, 2020

Hey all, 

 

I don't know if this is possible but after digging into the JQL documents I figured I'd ask here. 

I had a request to see if its possible to: 

"email me if the number of issue requests in a week exceeds 25?"

 

2 answers

0 votes
Dave Liao
Community Champion
December 18, 2020

@Help Desk - what are you trying to solve for?

Why not get emailed when you get 24 issues in a week, or 23?

Out of the box, Jira can email you the results of a saved search (an issue filter) on a periodic basis: https://support.atlassian.com/jira-software-cloud/docs/work-with-search-results/

You can tell Jira to email you once a week, or twice a day, or whatever schedule you want: https://support.atlassian.com/jira-software-cloud/docs/construct-cron-expressions-for-a-filter-subscription/

There's no logic check being performed - this subscription will email you whatever is found (or not found) - on a regular basis. If you want a dynamic solution, consider Jack's answer.

Hope this helps or gives you ideas on where to go!

0 votes
Jack Brickey
Community Champion
December 18, 2020

for this you would need to leverage the APIs. you could build a query for items created since startofweek() and then using the API to get the results from the filter that would include the total number of items. Then leverage this to send email. I did a quick search in the Community and found this post that might help - How-to-get-the-number-of-case-being-logged-in-Service-Desk . Not a precise match but the underlying concept might be of use.

Help Desk December 18, 2020

much appreciated! i'll do a deeper dive and post back with any type of solution or other questions. 

Suggest an answer

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

Atlassian Community Events