Hot off the development press! We've added an option to increment or decrement your custom fields. This feature was added under the Numeric calculationssection.
Use There are multiple use cases for this type of formula type are plenty. For example, let's say you want to count the number of time times an issue has been re-worked before they are it was completed. You Your company wants to can then flag those issues that are problematic to close so that they can and dive into them to learn what went wrong and indemnify betters identify ways to fix similar issues. With reduce the re-work. With Abacus, you can create a simple counter that counts every time a resolved ticket is re-opened or send sent back to in-progress because it was not completed to the customers customer's liking.
First, we have to make sure we have created the create the custom field that we want to hold our new increment value. Make sure you set a default value for the field when creating your custom field. Abacus does not calculate empty fields. In our case, we created a field 're-work count' field. We then gave give our formulas formula a fancy name, selected select our re-work count custom field, and entered the enter a value to increment by (Remember that if If you enter a number without a sign, Abacus assumes it is positive. If you want a negative number, you have to enter a negative sign before the number).
We we If you toggle the optional fields, we have three 3 additional fields that we can use to further customize how the increment function will workworks.
- Start at Value - allows us Allows you to set the starting number for the increment or /decrement. This can also be used if your did not you didn't set the default value for the custom field when you created the field.
- Upper limit - This is used to set Sets the stopping point for the a positive increment function. In our case, we can set the upper limit for re-work at 3. Since we deem an issue reworked to 3 since we deem anything more than two times will be flagged by our filtersbad. Therefore there is no need counting after that.
- Lower limit - this is used when decrementing a number and you want to set a stopping point.
Finally, we create an execution plan to run our formulasformula. In our case we want the formula to be executed
WHENexecuted when...
- An issue is updated .and IF status changed FROM resolved to backlog(via WHEN clause)
- And when the status changes from 'resolved' to 'backlog' (via JQL IF clause)
There we have it ladies and gentlemen. Our fancy incrementing machine.