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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

81 views 0 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