Is it possible to create issues via the REST API JS from a custom application

I am trying to create an issue via the REST API in Javascript from a custom application. Is this possible?

 

Where can I find an example of "all the correct params". I am currently getting a failure on the preflight and from my understanding I am constructing the AJAX call correctly

2 answers

Yes it is possible. A simple AJAX call with all the correct params is enough (with all the other basic requirements of course).

0 votes

To test out Atlassian Rest API's I would highly recommend using the Rest Api Browser: https://developer.atlassian.com/docs/developer-tools/using-the-rest-api-browser

It lets you understand how to send rest calls to the Atlassian API's before attempting to write them into your own app.

I'm using JIRA cloud so the Rest API browser is not available

Then run Atlassian Cloud locally using AMPS. There are instructions in the Atlassian Connect getting started guide: https://developer.atlassian.com/static/connect/docs/guides/getting-started.html

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

857 views 5 18
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot