Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how can I retrieve JIRA commits using the JIRA private API ?

Henry hvconrail
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 4, 2025

I am leveraging Python to attempt to retrieve JIRA commits from the developer panel and the standard REST API that is public does not return that information needed.  I have shifted my focus trying to use the private API to achieve gathering the needed information.  the API specifically I attempt to call is:

https://<JIRA-IP>/rest/dev-status/latest/issue/summary?issueId=<JIRAkey>

I provide my user email, my PAT token and the URL with the key and I receive 401 error codes.

However if I call the public key with my token, I receive good results.  Is there some permissions I require to leverage this API different from the public API?

 

Thx

Henry

3 answers

1 vote
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2025

Hello @Henry hvconrail 

Jira does not support access to any of its internal (private) API endpoints outside the context of the web browser session.

If you Google "How can I access Jira's internal API endpoints?" you will find all the times this question has asked and answered in the past.

0 votes
Vitalii Rybka
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2025

Hi @Henry hvconrail,

As @Sunny Ape mentioned, Jira's private/internal APIs aren't meant for external access - they're browser-session specific and unsupported.

Alternative Solutions for Commit Data:

  1. Jira REST API with Development Information:
    • Use /rest/api/3/issue/{issueKey}?expand=changelog
    • Look for development information in issue properties
  2. Direct Git Integration APIs:
    • GitHub: Use GitHub API to find commits mentioning Jira keys
    • Bitbucket: Bitbucket API with issue key search
    • GitLab: GitLab API commit search
  3. Atlassian Connect Apps:
    • Build a Connect app that can access development panel data
    • Apps like "Git Integration for Jira" provide APIs for this
  4. Webhook Approach:
    • Set up webhooks in your Git provider to capture commit data
    • Store commit-to-issue mappings in your own database

Recommended Path: Query your Git provider's API directly using commit message parsing for Jira keys - this is more reliable than trying to access unsupported private APIs.

The developer community Carlos mentioned is definitely worth checking for more advanced integration patterns!

Need help setting up any of these alternatives? 

0 votes
Carlos Garcia Navarro
Community Champion
August 4, 2025

Hi @Henry hvconrail ,

Welcome to the Community! In case you don't find the information here, there is also the Atlassian developer community here that may also provide answers and tips related to your question
https://community.developer.atlassian.com/

Suggest an answer

Log in or Sign up to answer