It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA Cloud API - Github Commit Information

For a given issue, JIRA Cloud API does not have a complete list of Github commits, It only displays the commit count and date of last commit.

customfield_11100"{repository={count=9, dataType=repository}, json={"cachedValue":{"errors":[],"summary":{"repository":{"overall":{"count":9,"lastUpdated":"2017-09-19T15:44:04.000-0400"},"byInstanceType":{"githube":{"count":9,"name":"GitHub Enterprise"}}}}},"isStale":true}}

But in the Browser UI, additional details are displayed with hyperlinks to the commit details.

Screen Shot 2017-09-19 at 4.17.31 PM.png

How can we gain access to this commit information via the JIRA API?

Note: The JIRA Issue API JSON does not have any other Git information (e.g. URL, Organization, or Project). So there is no way to dynamically construct an API Call to Github. For example, searching commits with JIRA Issue ID.

1 answer

I was looking for the same thing. I tried what's mentioned here but it always returns error that the issue ID is invalid.

I'm trying to hit the API, get the data for JIRA issue and its respective Github commits/PRs/branches.

Parthan,

The example is from an older version of the API; so those parameters do not seem to make a difference.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Agile

Webinar: Dean Leffingwell and Steve Elliot present on SAFe 5.0, come ask Dean and Steve questions!

...steemed Steve Elliot (head of product for Jira Align). Agenda: What’s new or changed in SAFe 5.0: Introduction of OKRs Essential SAFe How to achieve true business a...

126 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you