Hooks & APIs

Branches

This API will obtain list of branches associated to a ticket.

Branches REST API
url
rest/gitplugin/1.0/issues/branches?key={issuekey}
method
GET
parameters
key
Optional.  Jira issue key       Example: "TST-435"
result
If optional query is not defined, it will return all indexed git branches.

 

Example:
Example: http://jira.yourorg.com/rest/gitplugin/1.0/issues/branches?key="TST-435"

Result:
{
    "success":true,
    "branches":["master","release","TST-435"]
}