Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
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

Trigger Update of a GitHub Repository Index Edited

Hello,

I have a use case where users regularly create new GitHub repos, but when they go to create a new branch in a newly created repo it does not show up in the list of available repos to branch from.

The manual fix for this is to go into the settings an click on "Rebuild Index" then the repo will show up in the "Create Branch" search box.

Is there a way to:

  1. trigger the rebuild of an index when a new repo is created in GitHub
  2. trigger the index rebuild programmatically through a REST call
  3. another approach?

Cheers,

Nolan

2 answers

Hi Nolan,

I'm with BigBrassBand - the vendor supporting the Git Integration for Jira app. By the provided details it seems you are using Jira Server or Data Center. Could you confirm this?

Also, If you would prefer to continue this privately - contact us at support@bigbrassband.com.

Cheers,

David

Hi Nolan,

I haven't heard from you in a while.

The repositories will be reindexed according to the Reindex interval option found in the General Settings page if you are on Jira Server or Data Center. For Jira Cloud, this interval may very according to the repositories usage.

Sometimes, it is needed to trigger a reindex immediately once a change is made in your GitHub repositories. That is why we offer the webhook option. When you create a webhook, every time you commit changes, create branches, create pull requests or merge pull requests, those changes will trigger the reindex of the specific repository you are working on.

Now, let me answer your questions:

1. trigger the rebuild of an index when a new repo is created in GitHub

It is not possible to trigger a reindex when a repository is created in GitHub. But once the repository is created, the webhook configured and you make some changes, that will trigger a repository reindex in Jira. If the repository doesn't exist in Jira, it will be scanned.

2. trigger the index rebuild programmatically through a REST call

Yes, for Jira Server and Data Center, we offer a REST API to trigger repository reindexes at will. With this approach you need to know the repository id. You will find more information here.

3. another approach?

No, the previous are the 2 possible approaches.

 

Please, let me know if you have any follow up questions, or if you prefer, you can create a new ticket in our support page.

Cheers,

David

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

213 views 3 20
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