The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Call Bitbucket API from Custom UI

Saxea _Flowie_
Atlassian Partner
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 comments

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Bálint Berente _META-INF_
Atlassian Partner
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.

Like Caterina Curti likes this
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

Like Steffen Opel _Utoolity_ likes this
Saxea _Flowie_
Atlassian Partner
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
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

Like Steffen Opel _Utoolity_ likes this

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

TAGS
AUG Leaders

Atlassian Community Events