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

rest api call to query the Stash branches

Hi,

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. 

Thanks

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:

/rest/dev-status/1.0/issue/detail?issueId=${yourIssueId}&applicationType=stash&dataType=repository

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.

TAGS

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