Git Integration for Jira Cloud Documentation

GitLab webhook events

The following are the supported types of GitLab events for triggering webhooks:

GitLab (Push Events)

Type
pushEvents: "^push$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/json
X-GitHub-Event: push hook

Request payload example

{
  "object_kind": "push",
  "project_id": 15,
  ...
  "repository":{
    "name": "test1",
    "url": "git@example.com:acme/test1.git",
    "description": "",
    "homepage": "http://example.com/acme/test1",
    "git_http_url":"http://example.com/acme/test1.git",
    "git_ssh_url":"git@example.com:acme/test1.git",
  },
  ...
  "total_commits_count": 4
}

GitLab (Merge Request Events)

Type
"^merge_request$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/json
X-GitHub-Event: merge request hook

Request payload example

{
  "event_type": "merge_request",
  ...  
  "project": {
    "description": "",
    "git_http_url": "https://gitlab.com/johnsmith/test1.git",
    "git_ssh_url": "git@gitlab.com:johnsmith/test1.git",
    "url": "git@gitlab.com:ntalalova/test1.git",
    "http_url": "https://gitlab.com/johnsmith/test1.git",
    "name": "test1",
    "default_branch": "master",
    "id": 16244007,
    "homepage": "https://gitlab.com/johnsmith/test1"
  },
  "repository": {
    "name": "test1",
    "description": "",
    "url": "git@gitlab.com:johnsmith/test1.git",
    "homepage": "https://gitlab.com/johnsmith/test1"
  },
  ... 
  "object_kind": "merge_request",
  "labels": []
}

GitLab (Repository Project Create Events)

Type
repositoryEvents: "^project_create$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/json
X-GitHub-Event: system hook

Request payload example

{
  "owner_email": "admin@example.com",
  "path": "jsmith_4",
  "owner_name": "Administrator",
  "project_id": 85,
  "path_with_namespace": "root/jsmith_4",
  "name": "JohnSmith_4",
  "project_visibility": "private",
  "event_name": "project_create",
}

GitLab (Repository Project Update Events)

Type
repositoryEvents: "^project_update$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/json
X-GitHub-Event: system hook

Request payload example

{
  "owner_email": "admin@example.com",
  "path": "jsmith_4",
  "owner_name": "Administrator",
  "project_id": 85,
  "path_with_namespace": "root/jsmith_4",
  "name": "JohnSmith_5",
  "project_visibility": "private",
  "event_name": "project_update",
}

GitLab (Repository Project Destroy Events)

Type
repositoryEvents: "^project_destroy$"

Request URI
/api/1/webhook/reindex/install/<secret_key>/web

Request headers
Content-type: application/json
X-GitHub-Event: system hook

Request payload example

{
  "owner_email": "admin@example.com",
  "path": "jsmith_4",
  "owner_name": "Administrator",
  "project_id": 85,
  "path_with_namespace": "root/jsmith_4",
  "name": "JohnSmith_5",
  "project_visibility": "private",
  "event_name": "project_destroy",
}

Other webhook type events

GitHub webhook events

Microsoft webhook events

AWS CodeCommit webhook events

Bitbucket webhook events

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