Forums

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

JIRA Trigger for Github's "Changes Requested "

Vishal Guleria September 19, 2023

Hi All,

 

We are using Github with JIRA.

I have set-up an Automation in JIRA  where, when a PR is merged it automatically transitions the ticket to "QA review" Status. I was able to achieve that using this using the following trigger on JIRA.

 

Pull request mergedAutomatically transitions the issue when a related pull request is merged in a connected repository.

Now I want to create another automation. If PR Reviewer doesn't like the code quality or finds issue with it, he wants the developer to fix the code. He wants to comment the issues and instruct developer to change code to fix it and clicks "Changes Requested".

Which JIRA Trigger can be used based on Github's "Changes Requested"?

 

1 answer

0 votes
Bill Sheboy
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.
September 20, 2023

Hi @Vishal Guleria -- Welcome to the Atlassian Community!

Is the reviewer declining the PR?  If so, I believe there is a trigger for that event: https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Pull-request-declined

Kind regards,
Bill

Vishal Guleria September 21, 2023

Thanks bill, for the info.. But this trigger - Pull Request Declined is equivalent to "Close PR" on Github. I need to get JIRA trigger equivalent to "Changes Requested", or a workaround to achieve it.

Bill Sheboy
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.
September 21, 2023

I haven't done this with Github, but I wonder if you could use a scheduled rule (or webhook trigger) to call the Github REST API and check on the status of the review, taking actions as needed:

https://docs.github.com/en/rest/pulls/reviews?apiVersion=2022-11-28

Luis Gomes Zanforlin
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 8, 2024

I'm trying to implement the same behavior since the majority of PRs returns are done through Change Requests and not closing out a full PR.

But no luck implementing it. I'm surprised "Change Requested" isn't one of the main offered logic blocks on the automatic panel as it is more frequently used then closing out a PR.

Dário Gabriel Silva Vasconcelos
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!
March 26, 2025

I wish this feature a lot too, @Luis Gomes Zanforlin. We cannot work in free options because we need jira automations, but we have not all integrations we want to.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events