Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to refresh fetched commits in JIRA?

Borek Bernard April 8, 2015

We have a JIRA connected to our BitBucket-hosted Git repository and JIRA correctly fetches related commits to our issues. It works fine but the problem is this:

When a Git branch is rebased, the commits get new SHA1 hashes as they are technically new commits. JIRA fetches these new commits again but doesn't remove the previously fetched / indexed commits that no longer exist in the repo.

How to tell JIRA to refresh the commits? Should I just disabled and enable the DVCS connector?

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Harm Verhagen January 3, 2017

I found the solution to this problem.

 

You can do a "Full synchronisation" of the DVCS accounts. But its rather hidden in the UI.

I found the solution here:

https://confluence.atlassian.com/bitbucket/synchronize-an-account-371360175.html

 

System -> Applications -> DVCS accounts

There are sync buttons next to your repos.  These buttons do a 'soft' sync. (reload new commits).  however....

if you press SHIFT en then click the sync button, you get a pop-up where you can choose between a "Soft synchronisation"  or a "Full synchronisation"

 

0 votes
IT Red June 15, 2015

Did you solve the problem despite the answer below in any way?

0 votes
Tim Crall
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.
April 8, 2015

You should not be rebasing commits that have already been pushed to BitBucket.  Best practice is to rebase only local commits - otherwise you are rewriting already public history.  This will cause problems, as you've encountered.  It will also cause problems for any other developers trying to work on the rebased branch.

Borek Bernard April 8, 2015

In our case, the code is initially developed in a feature branch, then rebased on top of master after which the feature branch is deleted. This does not cause any issues for us, except for JIRA where we see duplicate commits (even the non-existent ones). Is there a way to force repo reindex?

Like # people like this
IT Red June 15, 2015

Any news on this question? We have the exactly very annoying problem!

Harm Verhagen January 3, 2017

Same problem here.  we like featured branched to be reviewed (pull request in bitbucket), but rebased before eventually merging to master.  

 

This gives duplicate commits in jira.

Like Mauricio Scheffer likes this

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events