In a Jira automation, I cannot get a JQL query to work with lookup and a smart value. The smart value itself ({{comment.body.match("([A-Z]+-\d+)").first}}) works fine i.e. it looks correct when printed to a comment in the same Jira automation flow, but it returns 0 results when used in a lookup (according to the audit log of the automation). I can confirm that when used in a comment, the value of the smart value is correct, so unsure why it cannot be used in a lookup? I've also tried setting it to a dedicated var as a step in between but that didn't work either. Thanks!

