This is an template for an application to submit bugs to JIRA. This script uses basic authentication, but you can easily alter it to use OAuth instead. If using this, you'll also want to update views/response.erb
to reflect whatever you want users to see after they submit a ticket (ie further instructions).
This is as flexible as the JIRA API. If you want to add more fields, just update views/form.erb
and json
in sinatra_jira.rb
. I would recommend updating the examples to be more specific and relevant to your project.
cp .env.example .env
- update .env with your JIRA username, password, and project key
bin/setup
ruby sinatra_jira.rb