Hi community,
is there a way to take tasks that have certain status, and check if amount of them is greater than 15, if yes, then for each task that have index above 15, it should send email to the assignee, preferably also add a label to those tasks?
Hey Jakub,
Welcome to Atlassian Community!
You can search for the work items using the lookup issues function.
Then use the smart value {{lookupIssues.size}} to check if it returns more than 15 results, and perform the required set of actions.
Thanks!
Issue has been renamed to Work item now, so it's the same thing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, my main problem is to assign the label only to work items which have index over limit, so first 15 tasks would not have this label and every one above will have
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jakub , welcome to the Atlassian Community and thanks for your post.
I helped another person with a similar requirement here - https://community.atlassian.com/forums/Jira-questions/Send-Email-when-Open-tickets-in-Given-Project-exceeds-10/qaq-p/2931047
You can have a JQL in the scheduled trigger to program the rule to be run whenever you find issues that meet the criteria and then you can use the lookup issues size to determine, as in this case, whether to send an email or not, and what to put in the message.
Please have a go at creating the rule yourself and test it. When you have some results or errors, write back with screens of the rule, the configurations and what tests you tried so we can help you further.
Best wishes
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.