It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 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
nic Community Leader Mar 22, 2016

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
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

884 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you