Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,344
Community Members
 
Community Events
176
Community Groups

Connect to Bitbucket database from bitbucket plugin

Hi,

I have an instance of Bitbucket which has an Oracle database. I am creating a plugin where I need to use the database tables directly (not the AO tables). Is there any way to achive this?

Do I need to use a normal JPA framework inside the plugin to fetch the details? If yes, how do I get the database credentials from the APIs without the need to store them inside the code?

1 answer

Hi,

I know it's been some time since you posted this but I hope my reply might help others in the future so here it is.

 

Plugins cannot access the database directly.

 

What they can then however is to use the available methods (https://developer.atlassian.com/server/framework/atlassian-sdk/atlassian-javadoc/) to read the information stored by a Bitbucket installation.

 

To store data instead, you'll need to rely on the Active Objects framework (https://developer.atlassian.com/server/framework/atlassian-sdk/active-objects).

 

Caterina

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events