Hello.Can I create an automation rule that notifies me after every 20th task is created?
Or if there is any plugin that can help?
Thank you
Hi @Ketevan ,
this surely can be done with ScriptRunner!With a post-function on Task create, a JQL get the number of Task and if this is divisible by 20, a notification is send.
Hi Ketevan,
This could be achieved also with Automation, I am sending an example to notify when the mark of issues is hit.
What I do in the script is:
Here are images of explaining the automation rule.
Indeed this problem could be solved with ScriptRunner as well, but that would require buying a plugin a probably more programming than it needs to be.
Hopefully this can help you and you can mark it is an answer.
If you have any questions, just let me know.
Regards,David
Hi @David Freitez ,
just a thing about your solution: in it the Task number is recovered from the issue key and not through a JQL but so, if some task has been deleted, this solution no longer works correctly.
Hi @Andrea Pannitti ,
You are right, I'll update it.
Thanks.
Hi @Ketevan
As was pointed out, we cannot rely on extracting issue key number to check on how many issues has been created if there are issues that were deleted. So, in that particular case:
I have updated the rule so it uses the Lookup Issues feature that uses a JQL that gives as result all issues of the project, then we'll grab with the smartvalue the result amount of the query and that's the value we'll end up dividing using the MOD function, the rest of the rule is the same.
If you have any questions regarding the implementation, just let me know.
What problem are you trying to solve by doing this? Knowing that may help the community to offer suggestions. Thanks!
Kind regards,Bill
It looks like you're new here. Sign in or register to get started.