The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Is there any REST API for Jira 8.17.0 to access Development Info?

subodhsohoni
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!
April 24, 2024

I am trying to migrate projects from Jira Server to another DevOps Service. We are using Jira Server 8.17.0 which is linked to BitBucket. We regularly associate Commits with Jira Issues. 

I could not find any REST (or otherwise) APIs to access the Development Info from the Jira Issue. Available APIs are for Jira Cloud.

Does anyone know how to programmatically access Development Info in Jira Issue on Jira Server 8.17.0? 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Subodh Sohoni
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!
April 30, 2024

I could get the Commits, Branches and PullRequests using following URL:

https://<My Service URL>/rest/dev-status/latest/issue/detail?issueId=<issueId>&applicationType=stash&dataType=repository - For list of commits
and 

https://<My Service URL>/rest/dev-status/latest/issue/detail?issueId=<issueId>&applicationType=stash&dataType=pullrequest - For lists of branches and PullRequests

0 votes
Kseniia Trushnikova
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 Champions.
April 29, 2024

Hi @subodhsohoni,

Try to use the /rest/api/2/issue/{issueIdOrKey} method. 

There should be the custom field Development in your Jira. This field contains all info about commits and pull requests. To get value from this field, use this:

https://www.example.com/jira/rest/api/2/issue/TEST-1?fields=customfield_12345

Replace customfield_12345 with the Development field id.

Subodh Sohoni
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!
April 30, 2024

Thanks for help but I found it using other experimental URLs. 

Spacibo vam bolshoi!

Like Kseniia Trushnikova likes this
Santosh Devata
March 10, 2025

Hi @Subodh Sohoni and @Kseniia Trushnikova - can you guys share the working snippet here again.