Atlassian Connect App: Call 3rd party REST API

I feel really silly asking this however I just can’t find documentation on how to call a third-party API if I am creating an Atlassian Connect app JIRA cloud.

Here’s where I’ve been looking but all REST API docs are about JIRA’s API.
https://developer.atlassian.com/cloud/jira/software/getting-started/

Thanks for the help!

1 Like

Hi @eebalo,

The documentation at https://developer.atlassian.com doesn’t cover the documentation of third party APIs. With Atlassian Connect, you can develop in any language and host and serve your app in numerous ways so there would be too much for us to document. For a start, what language are you building your app in?

Regards,
Dugald

Hi @dmorrow,

Thanks for responding!

I may have intercommunicated my question. I am developing my own APIs hosted in a different server than my front-end (the Atlassian Connect app via node.js).

Am I just able to use http.request from my JIRA app?

When I do this:
const request = require('request');

I get the following error:
Uncaught ReferenceError: require is not defined

I can’t find the link now but I read somewhere that I am not able to import or require node modules like normal node apps.

My question is how would I go about making a REST call to a 3rd party API, not JIRA… Not asking about documentation of 3rd party APIs

thanks again!!

Hi @eebalo,

If you are trying to make the request from an app iframe, then try using fetch.

Regards,
Dugald