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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

99 views 0 6
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