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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.