Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add PR description to issue when PR is merged on GitHub

Vladimir Budovsky
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 24, 2024

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events