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

Contact Support: Server  
Contact Support: Data Center  

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).

  • 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).

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