We are using "Pull Request Merged" rule. Unfortunately. pullRequest smart value does not contain "Description" field, only "title" field.
So, I've added "Incoming webhook" rule and connected it to GitHub webhook.
In webhook payload I can see the field webhookData.pull_request.title field which starts with Jira key, say ABCD-12345: <pr title string>
I also see webhookData.pull_request.body field which contains PR description.
The problem is that I must write JQL expression in Incoming webhook that will find Jira issue.
I tried key = webhookData.pull_request.title.substringBefore(":"), but no text function works on webhookData smart value fields - Jira reports error "webhookData.pull_request.title.substringBefore() function not found".
Can anybody, please, tell me what can I do?