Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Getting Git information from Jira API

I am struggling to get Git commit information out of Jira using the Rest API. I am using this URL:

https://<my instance>/rest/dev-status/latest/issue/detail?issueId=48912&applicationType=GitHub&dataType=repository

And I get the following:

{"errors":[],"detail":[{"repositories":[],"_instance":{"name":"GitHub","baseUrl":"https://github.com","type":"GitHub","id":"com.github.integration.production","typeName":"GitHub","singleInstance":true}}]}

Any help appreciated. I have searched the community and think the above should work.

 

 

3 answers

Hello Richard,

This Atlassian Community post suggests using "details" instead of "detail" in the REST url.

Regards,

Hyrum

With "details" I get back:

{"errors":[],"detail":[]}

When I use the summary URL, I get a response but it is all blank. 

 

https://<my instance>/rest/dev-status/latest/issue/summary?issueId=48912&applicationType=GitHub&dataType=repository

 

{"errors":[],"configErrors":[],"summary":{"pullrequest":{"overall":{"count":0,"lastUpdated":null,"stateCount":0,"state":"OPEN","dataType":"pullrequest","open":true},"byInstanceType":{}},"build":{"overall":{"count":0,"lastUpdated":null,"failedBuildCount":0,"successfulBuildCount":0,"unknownBuildCount":0,"dataType":"build"},"byInstanceType":{}},"review":{"overall":{"count":0,"lastUpdated":null,"stateCount":0,"state":null,"dueDate":null,"overDue":false,"completed":false,"dataType":"review"},"byInstanceType":{}},"deployment-environment":{"overall":{"count":0,"lastUpdated":null,"topEnvironments":[],"showProjects":false,"successfulCount":0,"dataType":"deployment-environment"},"byInstanceType":{}},"repository":{"overall":{"count":0,"lastUpdated":"1970-01-01T10:00:00.000+1000","dataType":"repository"},"byInstanceType":{}},"branch":{"overall":{"count":0,"lastUpdated":null,"dataType":"branch"},"byInstanceType":{}}}}

Hello Richard,

If you are able to use the REST call from a browser, try capturing it using Postman interceptor. See documentation here.

Regards,

Hyrum

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

255 views 12 14
View question

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