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
Hi Mike,
I have a bit of a hacky fix for you. Set up your rule like this:
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.
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).
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.