Third party app automatically creating JIRA issues

Shane Corley March 16, 2016

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

2 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 16, 2016

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?"

1 vote
Curtis McDonald March 16, 2016

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.

0 votes
Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2016

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

Shane Corley March 21, 2016

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!

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2016

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.

Curtis McDonald March 21, 2016

@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
TAGS
AUG Leaders

Atlassian Community Events