Bitbucket Data Center icon

Bitbucket Data Center

Interact with Bitbucket Data Center API

Actions29

Overview

This node integrates with the Bitbucket Data Center API to manage various resources such as projects, repositories, pull requests, branches, commits, users, and issues. However, for the Issue resource, direct operations are not supported by Bitbucket Data Center itself; instead, users are advised to use Jira integration for issue management.

Specifically, the Delete Issue operation is intended to delete an issue within a specified project repository. But in this implementation, any attempt to perform issue operations (including delete) will result in an error indicating that issue operations are not supported directly in Bitbucket Data Center.

This node is beneficial when automating workflows around Bitbucket Data Center resources like managing repositories, pull requests, branches, etc., but for issue tracking, it requires integration with Jira or another system.

Practical example:

  • Automate deletion of a repository branch after a feature merge.
  • Create and update pull requests programmatically.
  • Retrieve user information or list all projects.
  • Attempting to delete an issue via this node will throw an error directing to use Jira integration instead.

Properties

Name Meaning
Authentication Method of authentication: "Personal Access Token" or "Basic Auth".
Project The key of the project to work with.
Repository The slug identifier of the repository within the project.
Issue ID The numeric ID of the issue to delete.

Output

The output of the delete operation typically returns a JSON object indicating success:

{
  "success": true
}

However, for the Issue Delete operation, the node throws an error instead of returning a successful response because issue operations are unsupported.

No binary data output is involved in this operation.

Dependencies

  • Requires connection to a Bitbucket Data Center server URL.
  • Requires either a Personal Access Token or Basic Authentication credentials configured in n8n.
  • No additional external services are used for issue operations since they are unsupported here.

Troubleshooting

  • Error: "Issue operations are not directly supported in Bitbucket Data Center. Please use Jira integration instead."
    Cause: Attempting to perform issue operations (create, get, update, delete) on Bitbucket Data Center which does not support them.
    Resolution: Use Jira integration nodes or other issue tracking integrations compatible with your workflow.

  • API Request Failures: Errors related to API request failures may occur if credentials are invalid, server URL is incorrect, or network issues exist.
    Resolution: Verify credentials, server URL, and network connectivity.

  • Missing Required Parameters: If required parameters like Project Key, Repository Slug, or Issue ID are missing, the node will fail.
    Resolution: Ensure all required fields are provided.

Links and References

Discussion