JQL is used throughout Jira to make specific selections of Jira issues. Atlas CRM is integrated with JQL and allows you to find linked issues of companies, contacts and sales.
To search on custom template data you will need to configure an automation. This short video will explain how you can configure this automation. You can also read more about this integration in this blogpost.