Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Leader Dec 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 Leader Dec 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.

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
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

166 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you