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,298,985
Community Members
 
Community Events
165
Community Groups

How to perform a REST API call from the backend of my Confluence using Application Links?

Is there a way to use Application Links to perform a REST API call from the backend of my Confluence connect(cloud) add-on?
I am intending to call Jira REST API endpoints from Confluence side. Jira and Confluence are linked by Application Links.

I used to use the following scheme:
“/rest/jiraanywhere/1.0/servers” to get the list of Application Links
“/plugins/servlet/applinks/proxy?appId={APPLINK ID}&path={REST API ENDPOINT}” to perform a custom call
Unfortunately, the scheme won't work now.

I would appreciate some other options besides Application Links as well.

Thanks.

1 answer

0 votes
Jessica Atlassian Team May 31, 2022

Hello Andrey,


I believe this wouldn't work as Application Links are designed to use the JAVA API instead of REST API, so this might be the reason it is not working for you.

I'm not completely sure about your use case here to use the App Links with the REST API and why, so we could dig further for better options, if there is any, but if you could share more details with us about your end goal, it would be awesome!

Additionally, if you are looking for building an app or doing something custom, we would highly recommend searching for topics at our Atlassian Developer Community and posting your question there as well!

Further information can be found here: Applinks API 3.2 APIAtlassian SDK Developer | Application links. 

Kindest Regards,
Jessica

Hello Jessica,
Thank you for the reply.
Here are the details:
I am building Connect(cloud) app for cloud Confluence. The app will provide a macro that should show a minimal issue view of an issue from a Jira instance connected to the Confluence via Application Links(note it is possible to link any Jira using Application Links , not only Jira + Confluence pair hosted on the same instance).
I am interested in Application Links as I would like to relay all authorization stuff on Application Links. This works for server Confluence for me, so I intend to use the same approach for Connect app.

Jessica Atlassian Team Jun 10, 2022

Hi Andrey,

Apologies for not getting back to you sooner.

I have reviewed it internally with my team, but we don't think it is really possible to use the Application links with Rest APIs calls natively indeed.

However, since this is a custom app using Connect Cloud, there may some options available rather than using Applications Links, but our Developers would be the best option in this case to confirm with you if there is and in which scenarios would that work.

With that in mind, if you have anything related to custom apps development, please ask on our sister [Atlassian Developer Community|https://community.developer.atlassian.com/], as they will be able to provide you a more accurate answer on that.

Additionally, if you find any bugs or any issue that you suspect could be a bug, or even a suggestion for improvement, please feel free to submit it on our https://ecosystem.atlassian.net/.

Hope that helps getting you started!

Cheers,
Jessica

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

246 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you