In addition to simple automation by issue type in a specific project, it is also possible to automate adding templates with the JQL filter, which makes the automation more flexible on when to add a checklist to the issue. Similarly, as with the simple automation, this action is reserved for project and Jira admins.
To add automation via JQL filter click the Add automation button on the Manage template page and then select Automate with JQL Filter. Then you can either select an existing filter from the dropdown or if you don’t have any filters created yet, you can click Create filter to create one.
As soon as an issue reaches a state that matches the JQL filter search, the chosen checklist template will be added to this issue. Each checklist template will be added only once.
A sample JQL filter that adds a checklist template when either a Story or a Task reaches the "Testing" status could look like below:
issuetype in (Story, Task) AND status = Testing