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 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, the JQL is an example in my sandbox, the JQL needs to be updated according to the needs of the person that would apply this solution.
I see the ticket creator indicated task, but it could have meant a task-like issue type.
Anyway, thanks for pointing it out, this is my first Atlassian community reply, so you are right, it's all about details.
Thanks,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No problem @David Freitez and thank you for your contribution!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello guys,
Many thanks for helping.
@David Freitez I've tried everything according to your screens, but when I run the rule it fails, here is the log:
Do you know how to solve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ketevan
Are you using the rule with the JQL or extracting the number from the Issue key ?
Can you share the screenshot of the % operator being used ?
Thanks,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ketevan
What problem are you trying to solve by doing this? Knowing that may help the community to offer suggestions. Thanks!
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.