Git Integration for Jira Self-Managed (Data Center/Server) Documentation

Contact Support
GitKraken Status  

Creating reindex triggers for a single repository

To create a webhook that triggers the reindex of a single repository, the following requirements are required::

  • The git_http_url matches the Repository Origin URL from the Jira git configuration page (Jira dashboard menu Git ➜ Manage repositories ➜Actions ➜ Edit integration settings).

  • IMPORTANT! The Content-Type request header is set to application/json.

  • Use the webhook secret key from the git configuration page ➜ Webhooks.

The webhook is a POST request with the following JSON body:

{
  "repository": { "git_http_url": "https://gitlab.com/bbb-dev/bbb-testrepo.git" 
  }
}

For example:


Result:

The repository is placed in the indexing queue via the git repositories configuration page (Jira dashboard menu Git ➜ Manage repositories).

 

More related articles about webhooks setup

Creating reindex triggers for a single repository (this page)

Adding webhooks for GitHub

Adding webhooks for GitLab

Webhooks GitHub Organization support

Adding webhooks for Azure DevOps Repos | VSTS

Adding webhooks for Azure DevOps Server | TFS

Adding webhooks for Bitbucket

Adding webhooks for Gerrit

Have feedback about this article? Did we miss something? Let us know!
On this page