Questions tagged [bitbucket-api]

The Bitbucket REST API allows third-party application developers the means for writing applications for the Bitbucket service.

The Bitbucket REST API allows third-party application developers the means for writing applications that integrate with the Bitbucket service. The API includes ways to manage the repository changesets, issues on the issue tracker, permissions etc.

See also

430 questions
4
votes
1 answer

Download file at specific commit with Bitbucket REST API

We are trying to find a way to download a single file from a Bitbucket project using the REST API at a specific commit. Currently, we have the ability to download a file at a specific…
Tim Biegeleisen
  • 502,043
  • 27
  • 286
  • 360
4
votes
1 answer

bitbucket-build-status-notifier-plugin using credentials with pipeline

I have been trying to get Jenkins' "Bitbucket Build Status Notifier" plugin to notify Bitbucket whether the Maven build after a commit was successful or not. The documentation available very nicely explains how to create credentials and add them to…
4
votes
3 answers

Quickly find all Bitbucket Pull requests for a Jira issue

I would like to find all pull requests for a Jira issue. Obviously, this is a possible task, as Jira itself shows the information: Currently, I retrieve a list of all merged and open pull requests via the Bitbucket API, and pattern match these to…
Alexander Reifinger
  • 512
  • 1
  • 4
  • 18
4
votes
2 answers

How to Configure/Access Bitbucket Server REST API via OAuth Client Credentials

I don't understand how to generate the secret that is used for the Bitbucket Server REST API using the client credential grant type. For example: $ curl -X POST -u "client_id:secret" https://example.org/site/oauth2/access_token -d…
MCTaylor17
  • 411
  • 5
  • 16
4
votes
1 answer

BitBucket get list of all contributors

Is there a way using the BitBucket API to get a list of all commiters/contributors to a repository? I know I can user git-shortlog for this purpose but would rather make an API call if possible.
Drejc
  • 14,196
  • 16
  • 71
  • 106
4
votes
1 answer

Is there a way to get user's email address via API?

Is there a way via BitBucket's API to get the user's email address associated with our group? Under: https://bitbucket.org/api/1.0/users/foobar I see their username, display_name, first_name, last_name, etc., but no email address. In a nutshell,…
grayaii
  • 2,241
  • 7
  • 31
  • 47
4
votes
5 answers

How to change committed User name in bitbucket?

How to change commit username in bitbucket account ? To change in git I have used this command git filter-branch -f --env-filter " GIT_AUTHOR_NAME='newUser' GIT_AUTHOR_EMAIL='newuser@email.com' " HEAD It only change username in local machine but…
Amrit Dhungana
  • 4,371
  • 5
  • 31
  • 36
4
votes
4 answers

Using BitBucket's API to fork a repository

There's any way to fork a repository using BB's API? From what I've read on the API's docs, there isn't any explicit one: https://confluence.atlassian.com/display/BITBUCKET/Repositories My idea is to create a new repo and point that it's a fork of…
dmmd
  • 2,938
  • 4
  • 33
  • 41
3
votes
1 answer

How to find all commits by user to *any* repo in bitbucket?

I have many repos, in which I need to find some commit I made a very long time ago. Due to reasons, I don't know which repos I have commits in, and when I did those commits. I could go over them one by one, looking for when I did commits. Is there…
Gulzar
  • 23,452
  • 27
  • 113
  • 201
3
votes
1 answer

Why is Personal Access Token not working for Bitbucket REST API?

TL/DR: (Why) does a name/PAT combination created in the Bitbucket web UI not work with Bitbucket REST API (or repo cloning)? I've been reading various documentation on Bitbucket REST API and Personal Access Tokens, with the intent of using the…
StoneThrow
  • 5,314
  • 4
  • 44
  • 86
3
votes
0 answers

How to get al repository users and their permissions using Bitbucket API

Im trying to retrieve all repository users and their permissions with Bitbucket API. I found that it possible to find project users but not repository.
Gigi
  • 31
  • 1
3
votes
1 answer

Retrieve Text file content from Bitbucket

I want to Read the text file which is uploaded in BitBucket through REST Api. URL: https://{username}:{token}/bitbucket.org/rest/api/1.0/{path}. This gives JSON of folder content. I wanted to read text file and to extract the content. How to do it?
Shockwave
  • 45
  • 7
3
votes
0 answers

How to get the creation date of a tag in BitBucket Server (aka Stash)

Update May 2023: There is no way to achieve this from the API for Stash Using BitBucket Server (aka Stash) version 6.3.0 I am trying to filter tags of a repository according to a specific date range., but can't find the creation date of a tag. From…
Chaos Monkey
  • 964
  • 1
  • 6
  • 18
3
votes
0 answers

How to get the git description of the existing pull request

How can get the description of my pull request in git with a command? I can get only the commit ids of the PR
smnag
  • 51
  • 5
3
votes
1 answer

How to create a pull request via the Bitbucket API?

TL;DR : Where can I find the documentation on what to pass to the POST request in order to create a Pull Request ? (What to put in the JSON) Using a Groovy script, I'm trying to automatize some tasks that include a commit/push of a tmp branch on…
Nefrasky
  • 69
  • 1
  • 8