Bitbucket

The Bitbucket modules enable you to monitor repositories, users or teams, and create, update, retrieve, or delete issues, snippets or milestones in your Bitbucket account.

Getting Started with Bitbucket

Prerequisites

  • A Bitbucket account

In order to use Bitbucket with Integromat, it is necessary to have a Bitbucket account. If you do not have one, you can create a Bitbucket account at bitbucket.org/account/signup.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting Bitbucket to Integromat

To connect your Bitbucket account to Integromat follow the general instructions for Connecting to services.

After you click the Continue button, Integromat will redirect you to the Bitbucket website where you will be prompted to grant Integromat access to your account.

Confirm the dialog by clicking the Grant Access button.

Watch

Watch Repository

Triggers when specified events occur in the repository.

Webhook nameEnter the name for the webhook. E.g. New Issue.
ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect the repository you want to watch for events.
EventsChoose the Bitbucket events that will trigger the module.

You can check that the webhook was created in the repository settings of your Bitbucket account.

tqcgVgALh2.gif

Watch a User

Triggers when the specified event occurs in all repositories that belong to your account. Creates a new webhook for the specified user account.

One can only register webhooks on one's own account, not that of others.
Webhook nameEnter the name for the webhook. E.g. New Issue.
ConnectionEstablish a connection to your Bitbucket account.
EventsChoose Bitbucket events that will trigger the module.

Watch a Team

Triggers when the specified event occurs in all repositories that belong to the selected team.

Only admins can install webhooks on teams.
Webhook nameEnter the name for the webhook. E.g. New Issue.
ConnectionEstablish a connection to your Bitbucket account.
TeamSelect the team you want to monitor events for.
EventsChoose Bitbucket events that will trigger the module.

Issue

Create an Issue

Creates a new issue.

The authenticated user is used in the issue's reporter field in the issue's details (Bitbucket UI).
The issue tracker must be enabled to use this module. Please follow the instructions for Enable an issue tracker.
The authenticated user must be the collaborator of the selected repository.
ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect the repository where you want to create a new issue.
TitleEnter the title of the issue.
RawEnter the description of the issue.
Markup

Select the markup language you want to use to format the issue description.

Kind

Select whether the issue is a bug, enhancement, proposal, or task.

Priority

Set the issue priority.

Username

Enter the user name of the user you want to assign the issue to.

The user name can be found in the user profile settings. https://bitbucket.org/account/user/{{username}}

2019-10-23_16_12_01-Window.png

State

Select the state of the issue.

Component

A component as defined in the repository's issue tracker.

Milestone

A milestone as defined in the repository's issue tracker.

Version

A version as defined in the repository's issue tracker.

Get an Issue

Retrieves the details of an issue.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository that contains the issue you want to retrieve.
Issue IDEnter (map) or select the issue you want to retrieve details about.

List Issues

Retrieves all issues within the selected repository.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository you want to retrieve issues from.
LimitSet the maximum number of issues Integromat will return during one execution cycle.

Update an Issue

Updates the specified issue.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository that contains the issue you want to update.
Issue IDEnter (map) or select the issue you want to update.

Please find the descriptions of the fields in the Create an Issue section above.

Delete an Issue

Deletes a specified issue.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository that contains the issue you want to delete.
Issue IDEnter (map) or select the issue you want to delete.

Create an Issue Comment

Adds a comment to the issue.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository that contains the issue you want to add a comment to.
Issue IDEnter (map) or select the issue you want to add a comment to.
RawEnter the text content of the comment.
MarkupSpecify the markup you want to use for formatting the comment.

Milestone

List Milestones

Retrieves all milestones within the specified repository.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository you want to retrieve milestones from.
LimitSet the maximum number of milestones Integromat will return during one execution cycle.

Get a Milestone

Retrieves milestone details.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository that contains the milestone you want to retrieve.
Issue IDEnter (map) or select the milestone you want to retrieve details about.

List Repository Watchers

Returns a list of all the watchers of the specified repository.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository you want to retrieve repository watchers from.
LimitSet the maximum number of repository watchers Integromat will return during one execution cycle.

File

Get a File

Downloads a file from the repository.

ConnectionEstablish a connection to your Bitbucket account.
RepositorySelect or map the repository that contains the file you want to download.
File NameEnter the file name of the file you want to download.

Snippet

List Snippets

Retrieves all snippets for the specified user.

ConnectionEstablish a connection to your Bitbucket account.
User NameSelect or map the user name you want to retrieve snippets for.
Role

Select your role to filter returned snippets.

  • owner: all snippets owned by the current user
  • contributor: all snippets owned by, or watched by the current user
  • member: owned by the user, their teams, or watched by the current user

When no role is specified, all public snippets are returned, as well as all privately owned snippets watched or commented on.

LimitSet the maximum number of snippets Integromat will return during one execution cycle.

Get a Snippet

Retrieves the details of a snippet.

ConnectionEstablish a connection to your Bitbucket account.
User NameSelect or map the user or team name the snippet you want to retrieve belongs to.
Snippet IDEnter (map) or select the ID of the snippet you want to retrieve details about.

Start Watching a Snippet

Starts watching the specified snippet.

ConnectionEstablish a connection to your Bitbucket account.
User NameSelect or map the user name associated with the snippet.
Role

Select your role for the snippet.

Snippet IDEnter (map) or select the ID of the snippet you want to start watching.

Stop Watching a Snippet

Stops watching the specified snippet.

ConnectionEstablish a connection to your Bitbucket account.
User NameSelect or map the user name associated with the snippet.
Role

Select your role for the snippet.

Snippet IDEnter (map) or select the ID of the snippet you want to stop watching.

List Snippet Watchers

Retrieves all users that are watching a specified snippet.

ConnectionEstablish a connection to your Bitbucket account.
Snippet IDEnter (map) or select the ID of the snippet you want to retrieve users from.
LimitSet the maximum number of users Integromat will return during one execution cycle.

Create a Comment on a Snippet

Adds a comment to the specified snippet. 

ConnectionEstablish a connection to your Bitbucket account.
User NameSelect or map the user name.
Snippet IDEnter (map) or select the snippet you want to add a comment to.
RawEnter the text content of the comment.
MarkupSpecify the markup you want to use for formatting the comment.
Comment IDIf you want to post your comment as a reply, enter (map) the comment you want to reply to.

Make an API Call

Allows you to perform a custom API call.

ConnectionEstablish a connection to your Bitbucket account.
URL

Enter a path relative to https://api.bitbucket.org/2.0/. E.g. teams

For the list of available endpoints, refer to the Bitbucket API docs.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Teams

The following API call returns the list of all teams where your role is admin:

URL 
teams

Query String
Key: role
Value: admin

2019-10-16_15_43_53-Integration_Bitbucket___Integromat.png

Matches of the search can be found in the module's Output under BundleBodyvalues. 
In our example, 2 teams were returned:

2019-10-16_15_46_41-Integration_Bitbucket___Integromat.png


Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.