Bitbucket environment import

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Import a Bitbucket environment from a configuration perspective into Assets. 

Some uses cases could be:

  • Find inactive projects, pull request, branches etc
  • Alert on pull request inactivity
  • For compliance, find out when a user was added and removed from accessing a specific project.
  • So much more....

Import type fields

These are the module type specific fields needed to be configured for this import type

Setting

Description

URL

URL to the Bitbucket server

Username

Username to authenticate to Bitbucket

Password

Password to authenticate to Bitbucket

Object type mapping configuration

Name

Description

Selector

Available Selectors:

Name

Description

PROJECTGet all Projects
PERMISSIONGet all permissions
REPOSITORYGet all repositories
PULL_REQUESTGet all pull requests
PULL_REQUEST_USER_INFOGet all pull request user infos
BRANCHGet all branches
BRANCH_PERMISSIONGet all branch permissions
USERGet all Users
GROUPGet all Groups
COMMITGet all commits


Predefined structure & configuration

This import module type provides an implementation of predefined structure and configuration.

Below are screenshots on the how it looks in Assets.

Object type tree

Object schema graph

Below you will find all predefined data for each object type. This can be changed for your requirements!

Branch

Attribute

Type

Identifier

Description

Display IDTEXT
The display Id
RepositoryOBJECT(tick)The Repository
DeletedBOOLEAN
If branch is deleted
DefaultBOOLEAN
If the branch is default
Latest ChangesetTEXT
The latest change set
Latest CommitTEXT
The latest commit
TypeTEXT
The type of branch
IdINTEGER
The branch Id

Branch Permission

Attribute

Type

Identifier

Description

NameTEXT
The name
DeletedBOOLEAN
If deleted
GroupsOBJECT
The list of Group
UsersOBJECT
The list of User
RepositoryOBJECT
The Repository
Matcher BranchOBJECT
The matcher Branch
Matcher ValueSELECT
The matcher value
Matcher TypeTEXT
The matcher type
TypeSELECT
The type of project
IdINTEGER(tick)The branch permission Id

Group

Attribute

Type

Identifier

Description

NameTEXT(tick)The name
DeletedBOOLEAN
If deleted

Permission

Attribute

Type

Identifier

Description

NameTEXT(tick)The name
DeletedBOOLEAN
If deleted
PermissionSELECT
The permission
GroupOBJECT
The Group
UserOBJECT
The User
RepositoryOBJECT
The Repository
ProjectOBJECT
The Project
TypeSELECT
The type

Project

Attribute

Type

Identifier

Description

NameTEXT
The name
DeletedBOOLEAN
If deleted
DescriptionTEXT
The description
Self URLURL
The Self URL
PublicBOOLEAN
If public
TypeSELECT
The type
Project KeyTEXT(tick)The project key

Pull Request

Attribute

Type

Identifier

Description

RepositoryOBJECT(tick)The repository
DeletedBOOLEAN
If deleted
Participant InfoOBJECT
List of participant info (Pull Request - User Info)
Reviewer InfoOBJECT
List of reviewer info (Pull Request - User Info)
Author InfoOBJECT
Author Info (Pull Request - User Info)
Destination BranchOBJECT
Destination Branch
Source BranchOBJECT
Source Branch
Closed DateDATE
The closed date
Updated DateDATE
The updated date
Created DateDATE
The created date
Self URLURL
The Self URL
LockedBOOLEAN
If looked
OpenBOOLEAN
If open
StateSTATUS
The state
VersionTEXT
The version
IdTEXT(tick)The Id
TitleTEXT
The title

Pull Request - User Info

Attribute

Type

Identifier

Description

UserUSER
The user
DeletedBOOLEAN
If deleted
ApprovedBOOLEAN
If approved
StatusSTATUS
The state
Last Reviewed CommitTEXT
The last reviewed commit
RoleTEXT
The role
IdTEXT(tick)The Id
NameTEXT
The title

User

Attribute

Type

Identifier

Description

DeletedBOOLEAN
If deleted
ActiveBOOLEAN
If active
IdTEXT(tick)The id
SlugTEXT
The slug
TypeTEXT
The type
Email AddressEMAIL
The email address
UsernameTEXT
The username
NameTEXT
The title

Repository

Attribute

Type

Identifier

Description

DeletedBOOLEAN
If deleted
StateSTATUS
The state
IdTEXT(tick)The id
ProjectPROJECT
The project
Status MessageTEXT
The status message
ScmIdTEXT
The Scm Id
ForkableBOOLEAN
If forkable
SlugTEXT
The slug
NameTEXT
The title
Last modified on Oct 27, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.