← Bitbucket + Procore integrations

Create Incident with Procore API on New Event from any Repository from Bitbucket API

Pipedream makes it easy to connect APIs for Procore, Bitbucket and 3,000+ other apps remarkably fast.

Trigger workflow on
New Event from any Repository from the Bitbucket API
Next, do this
Create Incident with the Procore API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Bitbucket trigger and Procore action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Event from any Repository trigger
    1. Connect your Bitbucket account
    2. Select a Workspace
    3. Select one or more Repository
    4. Select one or more Event Types
  3. Configure the Create Incident action
    1. Connect your Procore account
    2. Select a Company ID
    3. Select a Project ID
    4. Configure Title
    5. Configure Event Date
    6. Optional- Configure Description
    7. Optional- Configure Private
    8. Optional- Configure Recordable
    9. Optional- Configure Time Unknown
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when an event occurs from any repository belonging to the user. [See docs here](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-hooks-post)
Version:0.0.1
Key:bitbucket-new-event-from-any-repository

Bitbucket Overview

The BitBucket API taps the potential of BitBucket's Git-based version control system, enabling you to automate workflows around code commits, pull requests, and overall repository management. With this API, you can streamline the collaboration process, enforce coding standards, or integrate with other tools to create a cohesive development ecosystem. Pipedream, as a serverless integration and compute platform, provides a seamless environment to connect BitBucket with various apps and services, enabling you to harness its API for efficient, customized automations.

Trigger Code

import common from "../common/common.mjs";
const { bitbucket } = common.props;

export default {
  ...common,
  type: "source",
  name: "New Event from any Repository",
  key: "bitbucket-new-event-from-any-repository",
  description: "Emit new event when an event occurs from any repository belonging to the user. [See docs here](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-hooks-post)",
  version: "0.0.1",
  props: {
    ...common.props,
    repositoryIds: {
      propDefinition: [
        bitbucket,
        "multiRepositories",
        (c) => ({
          workspaceId: c.workspaceId,
        }),
      ],
    },
    eventTypes: {
      propDefinition: [
        bitbucket,
        "eventTypes",
        () => ({
          subjectType: "repository",
        }),
      ],
    },
  },
  methods: {
    ...common.methods,
    getPath() {
      return this.repositoryIds?.length > 1
        ? this.repositoryIds.map((repositoryId) => `repositories/${this.workspaceId}/${repositoryId}/hooks`)
        : `repositories/${this.workspaceId}/${this.repositoryIds[0]}/hooks`;
    },
    getWebhookEventTypes() {
      return this.eventTypes;
    },
    proccessEvent(event) {
      const {
        headers,
        body,
      } = event;

      this.$emit(body, {
        id: headers["x-request-uuid"],
        summary: `New repository event ${headers["x-event-key"]}`,
        ts: Date.parse(headers["x-event-time"]),
      });
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
BitbucketbitbucketappThis component uses the Bitbucket app.
WorkspaceworkspaceIdstringSelect a value from the drop down menu.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
RepositoryrepositoryIdsstring[]Select a value from the drop down menu.
Event TypeseventTypesstring[]Select a value from the drop down menu.

Trigger Authentication

Bitbucket uses OAuth authentication. When you connect your Bitbucket account, Pipedream will open a popup window where you can sign into Bitbucket and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Bitbucket API.

Pipedream requests the following authorization scopes when you connect your account:

accountaccount:writeteam:writerepository:writepullrequest:writesnippet:writeissue:writeemailwikiwebhook

About Bitbucket

Bitbucket Cloud is a Git-based code and CI/CD tool optimized for teams using Jira.

Action

Description:Create a new incident. [See the documentation](https://developers.procore.com/reference/rest/incidents?version=latest#create-incident).
Version:0.0.2
Key:procore-create-incident

Procore Overview

The Procore API empowers developers to interact with its construction management software programmatically, enabling automation of tasks, data synchronization, and enhanced reporting. With APIs covering project management, quality and safety, construction financials, and field productivity, you can craft workflows that streamline operations, reduce manual entry, and provide real-time insights. On Pipedream, these capabilities can be harnessed to create workflows that react to events in Procore or orchestrate actions between Procore and other apps, optimizing construction project workflows.

Action Code

import app from "../../procore.app.mjs";

export default {
  key: "procore-create-incident",
  name: "Create Incident",
  description: "Create a new incident. [See the documentation](https://developers.procore.com/reference/rest/incidents?version=latest#create-incident).",
  version: "0.0.2",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  type: "action",
  props: {
    app,
    companyId: {
      propDefinition: [
        app,
        "companyId",
      ],
    },
    projectId: {
      optional: false,
      propDefinition: [
        app,
        "projectId",
        ({ companyId }) => ({
          companyId,
        }),
      ],
    },
    title: {
      type: "string",
      label: "Title",
      description: "Incident Title",
    },
    eventDate: {
      type: "string",
      label: "Event Date",
      description: "The date and time when the incident occurred, in ISO 8601 format. If the time is unknown, use `00:00` project time converted to UTC (e.g., `2025-04-01T00:00:00Z`).",
    },
    description: {
      type: "string",
      label: "Description",
      description: "Description of the Incident",
      optional: true,
    },
    isPrivate: {
      type: "boolean",
      label: "Private",
      description: "Indicates whether an Incident is private",
      optional: true,
    },
    recordable: {
      type: "boolean",
      label: "Recordable",
      description: "Indicates whether an Incident is recordable",
      optional: true,
    },
    timeUnknown: {
      type: "boolean",
      label: "Time Unknown",
      description: "Indicates whether the time of the Incident occurrence is unknown",
      optional: true,
    },
  },
  methods: {
    createIncident({
      projectId, ...args
    } = {}) {
      return this.app.post({
        path: `/projects/${projectId}/incidents`,
        ...args,
      });
    },
  },
  async run({ $ }) {
    const {
      createIncident,
      companyId,
      projectId,
      title,
      description,
      eventDate,
      isPrivate,
      recordable,
      timeUnknown,
    } = this;

    const response = await createIncident({
      $,
      companyId,
      projectId,
      data: {
        incident: {
          title,
          description,
          event_date: eventDate,
          private: isPrivate,
          recordable,
          time_unknown: timeUnknown,
        },
      },
    });
    $.export("$summary", `Successfully created incident with ID \`${response.id}\`.`);
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
ProcoreappappThis component uses the Procore app.
Company IDcompanyIdintegerSelect a value from the drop down menu.
Project IDprojectIdintegerSelect a value from the drop down menu.
Titletitlestring

Incident Title

Event DateeventDatestring

The date and time when the incident occurred, in ISO 8601 format. If the time is unknown, use 00:00 project time converted to UTC (e.g., 2025-04-01T00:00:00Z).

Descriptiondescriptionstring

Description of the Incident

PrivateisPrivateboolean

Indicates whether an Incident is private

Recordablerecordableboolean

Indicates whether an Incident is recordable

Time UnknowntimeUnknownboolean

Indicates whether the time of the Incident occurrence is unknown

Action Authentication

Procore uses OAuth authentication. When you connect your Procore account, Pipedream will open a popup window where you can sign into Procore and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Procore API.

Pipedream requests the following authorization scopes when you connect your account:

About Procore

The all-in-one construction management software built to help you finish quality projects — safely, on time, and within budget.

More Ways to Connect Procore + Bitbucket

Create Incident with Procore API on New Branch (Instant) from BitBucket API
Bitbucket + Procore
 
Try it
Create Incident with Procore API on New Commit Comment (Instant) from BitBucket API
Bitbucket + Procore
 
Try it
Create Incident with Procore API on New Commit (Instant) from BitBucket API
Bitbucket + Procore
 
Try it
Create Incident with Procore API on New Issue (Instant) from BitBucket API
Bitbucket + Procore
 
Try it
Create Incident with Procore API on New Pull Request (Instant) from BitBucket API
Bitbucket + Procore
 
Try it
New Commit (Instant) from the Bitbucket API

Emit new event when a new commit is pushed to a branch. See docs here

 
Try it
New Pull Request (Instant) from the Bitbucket API

Emit new event when a new pull request is created in a repository. See docs here

 
Try it
New Branch (Instant) from the Bitbucket API

Emit new event when a new branch is created. See docs here

 
Try it
New Commit Comment (Instant) from the Bitbucket API

Emit new event when a commit receives a comment. See docs here

 
Try it
New Event from any Repository from the Bitbucket API

Emit new event when an event occurs from any repository belonging to the user. See docs here

 
Try it
Create Issue Comment with the Bitbucket API

Creates a new issue comment. See docs here

 
Try it
Create Snippet Comment with the Bitbucket API

Creates a new snippet comment. See docs here

 
Try it
Creates a new issue with the Bitbucket API

Creates a new issue. See docs here

 
Try it
Get File From Repository with the Bitbucket API

Gets the actual file contents of a download artifact and not the artifact's metadata. See docs here

 
Try it
Get issue with the Bitbucket API

Get a issue. See docs here

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.