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

Contact Support
GitKraken Status  

Get Commit Issue Changes API

Returns the list of issues associated with the commit from the specified repository.

There are two types of users who can perform the Get Commit Issue Changes API call:

  1. Jira administrators
  2. Jira user who has all of the following:
    • View/browse permissions to the project;
    • View Development Tools permissions to the same project; and
    • The repository is associated to the project.

 

url

{JiraBaseURL}/rest/gitplugin/1.0/repository/{repoId}/commits/{commitHash}/issues

method

GET

Parameters

Field Description
jira-host String. Required.

This is the default url location where you host your Jira.

For example:
http://local-host-jira.com:2990
https://jira.your-organization.com

repoId Integer. Required.

Substitute {repoId} with the actual repository ID.

Use the Repository REST API to obtain the connected repositories’ IDs.

commitHash String. Required.

This is the hash of the commit that you want the results from.

Example:  e012663bf9bd968388faa510cb5b310e4798c512

Response

Returns the result for the example below.

Examples

http://jira.yourorg.com:2990/rest/gitplugin/1.0/repository/1/commit/e012663bf9bd968388faa510cb5b310e4798c512/issues

Result:

{
 "success": true,
 "issueKeys":[
     "TEST-999",
     "NEXT-3",
     "TEST-6",
     "TEST-2",
     "TEST-1"
 ]
}

The resulting issueKeys are the existing Jira issues that are currently associated with the commit that has the specified commit hash.

Example for GET queries:

GET /jira/rest/gitplugin/1.0/repository/1/commits/e012663bf9bd968388faa510cb5b310e4798c512/issues HTTP/1.1

Host: local-host-jira.com:2990
Content-Type: application/json

 

Commits REST APIs

Get Commits

Get Commit Issue Changes (this page)

Update Commit Issue Changes

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