Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get all commits linked to a JIRA issue in Bamboo? Edited

I’m developing a Bamboo plugin that scans / searches a SVN repository - I need to collect all commits linked to certain JIRA issues.

Perhaps there's a method to do exactly that, but I have not found it. Instead, I'm collecting ALL commits and scan the comments for the JIRA issue keys.

To get all the buildChanges (collection of commits), you can execute

SvnChangeDetector.collectChangesSinceRevision()

However, when looking at the source code of this method, it maxes out at 100 commits.  In my case, I need to go back further than that.

I tried to extend the SvnChangeDetector class, but there are properties in the super class AbstactSvnExecutor that I can’t get to, which are needed to make this work. Maybe there's a trick to make this work? 

The max of 100 is eventually defined in the interface SvnConfigurationConstants.MAX_COMMITS_TO_RETURN.  I don’t think I can access those constants. since constants defined in an interface (static final).

How can I go back more than 100 commits? Or collect all commits for a given JIRA issue?

1 answer

0 votes

Hi Pieter,

The 100 items max return is hard coded and at the moment there is no workaround. I believe this is related to 100 build commits limitation cause missing JIRA issues linked to build and limited commits shown when creating release as it relates to Bamboo.

The first issue has been closed, however, please vote on the second issue and add your use case to the comments.

Cheers,

Branden

Thanks Branden. I added my vote and a comment with a short use case.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

1,068 views 0 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you