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

Your Points Tracker
  • 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
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?
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

rest api call to query the Stash branches


Is there a JIRA rest api endpoint to query with the JIRA number and get back the relevant branches in Stash which we can see in the right hand side of the JIRA under "Development" section. 


2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

You can use /rest/dev-status/1.0/issue/detail?issueId=${yourIssueId}&applicationType=stash&dataType=pullequest

Or use /rest/dev-status/1.0/issue/detail?issueId=${yourIssueId}&applicationType=stash&dataType=repository depending on what details you need.

I tried the following:


All I am getting is the instance information. The repositories are blank. Also in the response there is no errors listed. I tried with another issue and I am getting back results. The difference is the new issue has branch which has commits in it.

So is it like this that if you just create a branch and yet to add a commit under that new branch, your branch information is not going to show up?

Does that issue have branches that you can see under dev panel? Are you trying with the same user id?

Hi Jobin, I updated the comment. PLease take a look.

Probably, yes. I haven't tried all combinations. As long as the branch appears in dev panel, you should get it.


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