Pull Request status still remain Open

Marco Oliverio
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 16, 2018

Hi to all, I'm Marco from Italy

I've a question about pull request status in Jira Software
Example:

I have created  a pull request and correctly see the Pull request in Develop panel of the Related issue (the pull request name contain the issue KEY), but If I merge that pull request
and in bit bucket I see the pr as Merged, in Jira still remain as "opened". There is only 1 pull request.
If I click in jira for viewing all pull request The system show me the pull request is MERGED but in develop panel remains open.
This is giving me Crazy :D
What am I doing wrong?
Thanks for the replies
Marco

9 answers

3 votes
DNIssueCollector March 6, 2020

I'm using Jira Cloud and found that I can run a full sync to force Jira to re-read all PRs on the GitHub side. This hasn't resolved the issue, as we are still finding PRs that aren't updating, but it does seem to retroactively address this.

Jira Settings > Apps > Manage Apps > expand GitHub > Get Started > dropdown Full > Submit

It's a lengthy operation so I tend to run it in off hours. Hopefully multiple syncs doesn't hurt me in the long run. . . 

3 votes
karenann
Contributor
December 3, 2018

I am also experiencing the issue described in the original problem.

Let me show two images to visually describe the problem.

In this first attached image, you can see that the "Development" column in the Release shows "UNDER REVIEW" and the details show that pull request "8.x-2.7 RC 1" is listed as open.

Screen Shot 2018-12-03 at 9.31.55 AM.png

 

In this second attached image, you can see that this pull request is, in fact, merged. However, I cannot get Jira to recognize that it is merged.

Screen Shot 2018-12-03 at 9.32.41 AM.png

paula.catharina
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!
July 5, 2019

I am having the same problem here, it doesn't happen often, but sometimes it does and it drives me crazy.

Did you guys find some solution? Belto posted this bug below: https://jira.atlassian.com/browse/JSWCLOUD-17240 but it is not what is happening, because my pull requests that are not updated accordingly have commits in it recognized by the Jira development field.

Mandia May 12, 2020

I have the same issue. Any solution ?

cpedraza
Contributor
July 6, 2021

I had the same issue. I solved it by changing the name of the PR in github (post merge) to add the Jira ticket name ("WWW-2063" in this example). That seemed to trigger an update and it appears as on Jira as merged now (instead of open).

Like # people like this
1 vote
cpedraza
Contributor
July 6, 2021

I had the same issue but on Github.

I solved it by changing the name of the PR in github (post merge) to add the Jira ticket name ("WWW-2063" in this example). That seemed to trigger an update and it appears as on Jira as merged now (instead of open). It may work if you update the title with something else. I just figured adding the ticket name would help since it's what links PRs to issues.

1 vote
Matthew J_ Becker
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 31, 2021

I just had this happen with Jira/Bitbicket Cloud. I un- and re-approved the merged Pull Request, and the Jira issue picked up the change then.

1 vote
valdes21
Contributor
February 2, 2020

Same problem here. I'm using Jira Server 8.5.1 with BItbucket Cloud. When the pull request on Bitbucket becomes "Merged" Jira doesn't get it. I have to switch to administration menu and enforce the sync of the particular Bitbucket repository with Jira. The Jira issue get's the right state then. It's really annoying, cause it happens with every pull request. Does anyone have a solution?

valdes21
Contributor
February 6, 2020

I found the solution in my case. The Bitbucket webhook for merged and declined pull requests was not set. See picture attached. After I activated both checkboxes the problem was solved.

 

Bildschirmfoto 2020-02-06 um 21.15.53.png

valdes21
Contributor
February 6, 2020

I found the solution in my case. The Bitbucket webhook for merged and declined pull requests was not set. See picture attached. After I activated both checkboxes the problem was solved.

Bildschirmfoto 2020-02-06 um 21.15.53.png

Like # people like this
1 vote
valdes21
Contributor
February 2, 2020

Same problem here. I'm using Jira Server 8.5.1 with BItbucket Cloud. When the pull request on Bitbucket becomes "Merged" Jira doesn't get it. I have to switch to administration menu and enforce the sync of the particular Bitbucket repository with Jira. The Jira issue get's the right state then. It's really annoying, cause it happens with every pull request. Does anyone have a solution?

0 votes
Zachi Meyer December 7, 2020

Hi everyone,

I have JIRA server and I have this problem too (I don't have web hook).

How did you solve the problem?

0 votes
Inaki Berra
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!
July 12, 2019

Figured something out. If you want the status to show "Merged" you need to delete the branch of the PR. In that way, the status is updated to Merged.

 

Also, if you want the PR to appear open, there should be at least one reviewer.

karenann
Contributor
May 15, 2020

FWIW. The branch of the merged pull request is long deleted and still shows, in mine, as Open.

Like # people like this
0 votes
Timothy
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.
February 16, 2018

Merging a pull request in Bitbucket does not automatically change the status of the Jira issue unless you have configured it to do so with the Triggers in Issues workflow.

Marco Oliverio
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 16, 2018

Hi Timothy thanks for the reply
Mi problem isn't the issue status but the pull request status, which remain "open", meanwhile I have a merged request pull inside (is only one)
Marco

Like # people like this
fdumas3
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 8, 2019

I'm also experiencing this issue but with the GitHub integration.   The pull request status shows as "open" in JIRA even though it's merged in Github

Like Steve Turner likes this
Belto
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2019
Meigy Tsai
Contributor
October 8, 2019

@Belto Actually, that ticket JSWCLOUD-17240 doesn't capture the issue with GitHub. At least in our instance, we do have commits, and there is even a branch.. which has been merged.. and then deleted.

 

Screen Shot 2019-10-08 at 1.01.29 AM.pngScreen Shot 2019-10-08 at 1.02.51 AM.pngScreen Shot 2019-10-08 at 1.03.11 AM.png

Simon Jazbar
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!
April 8, 2021

@Meigy Tsai you managed to fix this issue? Do you have a workaround?

cpedraza
Contributor
July 6, 2021

@Simon Jazbar @Meigy Tsai 
I had the same issue. I solved it by changing the name of the PR in github (post merge) to add the Jira ticket name ("WWW-2063" in this example). That seemed to trigger an update and it appears as on Jira as merged now (instead of open).

Surendra Singh Kushwaha
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 2, 2021

@Meigy Tsai its only happen when jira fetch PR detail when it was Open, after code merge jira not fetch detail, you can check datetime in jira for same PR and merge datetime in merged branch. 

Suggest an answer

Log in or Sign up to answer