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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

65 views 0 11
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