I'd like to use automation to check if an issue does not match a specified JQL, and if there is not a match, then create an issue.
project = FOO AND type = Task AND resolution = Unresolved AND labels not in (BAR)
This would result in zero matches because the ticket was resolved. Then automation would create another task.
On a weekly basis we perform several routine tasks, if there is already a task then there is no need to have another task created before the current one is closed.