I have a custom text field for Customer Ref and want to use this field when an issue is created to look in other issues in my project for instances of that same customer ref.
In this way I hope to spot historic issues that relate to the new issue my customer has submitted via a portal. By matching this reference number.
Trigger issue created (issues are created via portal by our customers and they fill in the Customer Ref)
Compare the custom field {{issue.customfield_12345}} (I have the id)
Look in text ~ (I want to search historic issues in both Summary and this custom field)
Required result for a match would be to get an internal comment that a match was found - bonus points to return the matching issue keys in the comment.
How do I do this lookup and match in automation?