JIRA Rest API question

My company has this third party web app that we want to pull data from to create JIRA issues on our JIRA environment. The asp.net and js files used for the web app on my company's server are encrypted and I can't edit the js in order to make the http requests with the JIRA rest api. My initial thought is that it won't be possible to use the rest api to automatically create JIRA issues due to this encryption. The third party web app however sits on our sql database and I want to know if it's possible to pull the data using JIRA Rest api from that instead of changing the javascript itself of the app (Javascript is what would talk to JIRA, not sql right?). Any thoughts of how I should be going about this? I'm kind of a noob and I'm learning as I go. Thanks!

1 answer

0 votes

Yes, you'd use javascript in this case.  I'm not sure why it's "encrypted" though - it can't be when it arrives with the browser, or the browser couldn't use it (yes, encrypted in transit with https, but the content can't be when it's run on the client machine)

Your application doesn't have to use javascript though.  There are three things here:

  • Your webapp
  • JIRA
  • The user's browser

Your goal is for the webapp to create JIRA issues.  I imagine the processing in here is that your users are using a browser to do things in your webapp, and at some point, they do something that leads to "hey, raise an issue" (I'm assuming you want that automated, not just taking them to a JIRA page outside the webapp)

You have two options here:

  1. Embed code in your webapp that can get their browser to fire call over to JIRA.  That's going to be a javascript REST call if you do it that way.
  2. Your webapp can use anything that lets it post REST calls to push the data directly into JIRA without involving the user's browser.  That's code purely in your webapp, and you can write it in whatever you want

There's one other trick - if you do go for option 1, have a look at JIRA's "issue collectors".  They can generate the javascript for you to embed in your application so you don't have to write anything for yourself!

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 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...

5,588 views 22 17
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