How to get value "branched from" via REST API

Baa Dg I'm New Here Oct 23, 2017


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 Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

426 views 6 8
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot