Skip to content

Instantly share code, notes, and snippets.

@davidroberts63
Created April 27, 2016 19:54
Show Gist options
  • Save davidroberts63/8fa1841753c9e7c10ac4d3099b063544 to your computer and use it in GitHub Desktop.
Save davidroberts63/8fa1841753c9e7c10ac4d3099b063544 to your computer and use it in GitHub Desktop.
REST call for list of branches indexed in Crucible repository

https://{YOUR CRUCIBLE URL}/changelog-ajax/{REPOSITORY.NAME}?q=&limit=51&command=branches

That will return something looking like:

{
    totalItems: 5,
    hasQuerySpecified: false,
    items: [
    {
        displayPrimary: "trunk",
        displaySecondary: "Branch",
        id: "trunk",
        isBranch: true,
        isTag: false,
        isCommitter: false
    },
    {
        displayPrimary: "YourBranchName",
        displaySecondary: "Branch",
        id: "YourBranchName",
        isBranch: true,
        isTag: false,
        isCommitter: false
    },
    {
        displayPrimary: "trunk",
        displaySecondary: "Branch",
        id: "trunk",
        isBranch: true,
        isTag: false,
        isCommitter: false
    },
    {
        displayPrimary: "root:",
        displaySecondary: "Branch",
        id: "root:",
        isBranch: true,
        isTag: false,
        isCommitter: false
    },
    {
        displayPrimary: "ANotherBranch",
        displaySecondary: "Branch",
        id: "ANotherBranch",
        isBranch: true,
        isTag: false,
        isCommitter: false
    },
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment