Forums

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

Is there a trigger for when a pull request has been approved?

Peter Trang
Contributor
March 30, 2018

Is there a trigger I can use for the workflow to transition issues when a pull request has been approved? There are triggers for open, reopen, PR created, declined, but no approved.

3 answers

2 accepted

1 vote
Answer accepted
Deleted user March 30, 2018

This is correct: there are no triggers for Pull request approved.

The complete list of triggers is available in the documentation in the section Understanding triggers.

Peter Trang
Contributor
March 30, 2018

I can't find where to put in a request for a "Pull Request Approved" trigger.

Deleted user March 30, 2018

@Peter Trangyou can submit a suggestion to the product team issue tracker:

John Huh
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!
February 21, 2019

I second this feature request.

Adam Wride
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2019

I have added this feature request here: https://jira.atlassian.com/browse/JRACLOUD-71798

Please vote/watch/comment.

1 vote
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2018

Until Atlassian adds triggers for approvals, you can use webhooks. See https://confluence.atlassian.com/bitbucketserver/managing-webhooks-in-bitbucket-server-938025878.html for more details.

Make a transition call on the PR Approved event.

Ian Mackay
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!
August 2, 2018

Can you detail how one would do this? I have the same issue and would like to use webhooks if that's possible, but I don't know how to get Jira to listen appropriately.

Like Ahsan likes this
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2018

You will need to use a valid JIRA REST API url to perform your operation. Check out https://docs.atlassian.com/software/jira/docs/api/REST/7.11.0/ for available REST end points  in JIRA

Anonymous
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!
November 21, 2019

buy for expensive and make it yourself :)

Like # people like this
Ahsan February 12, 2020

@Jobin Kuruvilla [Adaptavist] 

could you please share some example code for this ?

Suggest an answer

Log in or Sign up to answer