Third party app automatically creating JIRA issues

My company has a third party app that we want to automatically create JIRA issues based on the data that is contained within the app. How would I go about implementing this? Is there some API that could help with this? Thanks!

3 answers

1 vote

Absolutely - use JIRA's REST API to poke the data in - see https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue

You can do it any language that can produce REST calls, so the next question is "is there a way your 3rd party app can be made to make such a call when it's needed?"

Yes, JIRA has a REST API for integrating with other applications. Documentation can be found here:

https://docs.atlassian.com/jira/REST/latest/

For creating a new issue in JIRA, you'll want to look at the "issue" endpoint in the documentation.

All later versions of JIRA have a REST API that will allow you to create issues, you can even set it up to create issues from email (but I haven't tried that and am not sure I would recommend it).

Are you running on your own server or in the Cloud? 

We're using JIRA 6.4.11 on our own server and here's the documentation for the REST API to create an issue in 6.4.11. You can look around for other versions.

https://docs.atlassian.com/jira/REST/6.4.11/#d2e2279

I don't know if this is allowed in the Cloud solution, but don't see why it wouldn't be.

Sten

Okay thank you. I am new to working in the IT world in general so I'm learning as I'm going. The backend of this online database I need to pull from is all JavaScript and is on my company's own server. I understand how to get the json from JIRA in a browser, but just to be clear, i need to change the default js files for my application to make http requests to our JIRA environment and create the issue? Is that basically how it's working? Should I be using curl or something? I keep seeing Atlassian bringing that up. Thanks!

Atlassian use curl as an example because it's quite simple to use and installed on a lot of machines automatically (and even when it's not, it's usually very easy to add).  It's good for examples because you can concentrate on the content, and not how a program is working.

> i need to change the default js files for my application to make http requests to our JIRA environment and create the issue?

That sounds right to me.  I don't know that you'll need to use curl, anything that can poke another site with the commands can do it.

@Shane Corley - You can use the Javascript framework jQuery. It has a library for making Rest/HTTP calls which should simply the process.

I like to use Postman, a Chrome plugin, for doing and testing Rest services. It is much easier than cURL for doing simple and complex requests with minimal effort.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

1,202 views 7 7
View question

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