Skip to main content
Skip table of contents

Bitbucket REST API

Prerequisite is, that the Bitbucket server is configured as Jira Application Link. In this case you do not need further authentication information.

Datasource

Datasource Type

REST Application Link

Datasource Application Link

Choose Bitbucket link

Datasource Test URL

CODE
/rest/api/1.0/projects/DEMO/repos

Query

Query URL

CODE
/rest/api/1.0/projects/:project/repos/

Converter

JS
function convert(json) {
    var result = [];
    var parsedJsonObject = JSON.parse(json);
    var current, index;
    for (index in parsedJsonObject.values) {
        // only continue if this property is not inherited
        if (parsedJsonObject.hasOwnProperty(index)) {
            current = parsedJsonObject[index];
            result.push({
                'ID': current.id,
                'Name': current.name,
                'Slug': current.slug,
                'State': current.state,
                'Public': current.public
            });
        }
    }
    return result;
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.