Nikhil
Nikhil

Reputation: 31

Get commits info of a JIRA issue using REST API

I am not seeing any commit info in json that I am getting.

https://(jira-instance)/rest/dev-status/latest/issue/detail?issueId=(issueid)&applicationType=stash&dataType=(pullrequest or branch>)

I get only branch, pull request and stash instance info only from these. I also don't see commit info by using

https://(jira-instance)/rest/api/2/issue/(issueid)

Is there anything that I am missing here. Any help will be very useful here

Upvotes: 1

Views: 4425

Answers (1)

rydlu
rydlu

Reputation: 61

Use dataType=repository. You will get all data including commits.

https://(jira-instance)/rest/dev-status/latest/issue/detail?issueId=(issueid)&applicationType=stash&dataType=repository

Upvotes: 2

Related Questions