Create problem from count

Mike Ashley January 31, 2018

Hi

 

We are looking to be able to create a problem issue when 10 incident issues that meet x criteria are created in a 24 hour period. Is this possible?

 

Thanks

Mike

1 answer

1 accepted

0 votes
Answer accepted
Huw Evans
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2018

Hi Mike,

I have a bit of a hacky fix for you. Set up your rule like this:

Screen Shot 2018-02-01 at 11.42.55 am.png

What we're going to do is run a JQL to grab all the issues created in the last 24 hours, then we're going to filter that list down with any other conditions, and use a hacky regex to check if there are more than 10 of these issues.

Screen Shot 2018-02-01 at 11.43.19 am.png

Here, we're just running a JQL search that's going to return a list of issues to Automation. If you're more familiar with JQL, you can also add on any extra JQL conditions you'd like (also — narrowing down the search will reduce the strain on your system if you're in a high load environment).

Screen Shot 2018-02-01 at 11.43.27 am.png

Then add on any others conditions you'd like in the chain to narrow down the list of issues to pretty much whatever criteria you like. Once that's done, we can tack on this final condition, which uses a regex match on the size of the array to make sure there are at least 2 digits in it (that'll match anything larger than 10). This is a hacky workaround for comparing the number until we implement AUT-605 (linked to our internal issue tracker).

Then you can create your issue like normal.

Let me know if you run into any problems!

Huw

Developer at Code Barrel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events