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

Call Bitbucket API from Custom UI

Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 6, 2023

Hi,

How can I call a Bitbucket REST API from the front end using a Custom UI, since there's no requestBitbucket in @forge/bridge? Similar to requestJira.

Regards,
Renato

3 answers

Suggest an answer

Log in or Sign up to answer
1 vote
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2023

Hi @Saxea _Flowie_ 

There is now a ticket to follow for this request:
https://jira.atlassian.com/browse/BCLOUD-23027


Thank you again for bringing it up.

Cheers,
Caterian

1 vote
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 7, 2023

Hi @Saxea _Flowie_ ,

Have a look at how we did it in the Example apps: https://developer.atlassian.com/platform/forge/example-apps-bitbucket/

We just published those a few days ago. They use UI Kit 2 but I hope it's still going to be useful.

 

For example in the Bitbucket related pull requests app, the request is implemented in the resolver (check this file out: https://bitbucket.org/atlassian/forge-bitbucket-related-prs/src/main/src/resolvers/utils.ts).

 

We are also working on making the requestBitbucket available.

 

Hope this helps,
Caterina

Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2023

Hi @Caterina Curti

Thanks for the examples. I'm looking for a replacement for Connect request in order to port our existing connect app.

I'll wait for the requestBitbucket to be available.

Cheers,
Renato

Like Caterina Curti likes this
1 vote
Bálint Berente
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2023

Hi,

you might want to try from the resolver side, via asApp or asUser.requestBitbucket from the @Forge/api package. We are not familiar with frontend only solutions yet.

TAGS
AUG Leaders

Atlassian Community Events