How to get value "branched from" via REST API

Hello!

We use Crucible (as another product - JIRA) for many years, and now I'm doing some automation... I need to get the same value which is shown in Crucible UI in detailed review info under the field name "Branched from" but with Crucible REST API. I know CSID of review. Even branch (when review is branch-based). But how to find branch from which review's branch was cloned? Usually it's "master" (I'm talking about Git only), but not always, sure.

I tried "rest-service-fe/commit-graph-v1/slice/" REST API call but it does not help.

  1. I don't know how deeply I must to dig into the history? ("size" parameter)
  2. When I find "point of cloning" (i.e. "branches" list length is more than one item) - I don't know which branch to get as "branched from" value from this list. There are several branches in this list
  3. Will this method work if I rename branch... I can rename branch remotely, right?

How Crucible find this value, i.e. "Branched from"? How to do the same with REST?

1 answer

I wonder the same thing... How did you get the branch name itself though? I can't figure out even that...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

258 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you