Skip to main content

Fast and effective integration to Jira.

Project description

jTrack

A lightweight Python utility to allow fast and effective integrations of external reporters (e.g. automated scanners) with Jira.


Description

You are using an automated scanner or QA tool and want it to automatically create/update Jira tickets for your teams?

But.. How can my scanner know if the Jira has been already created on a previous scan? This is where jTrack comes in.

jTrack uses a local Sqlite to track the issues that have already been created and then updates the issues OR creates new one if the previous has already been resolved.


The logic in a nutshell


Installation

Prerequisites

  • Export the Jira details
    export JIRA_URL="https://JIRAURL"
    export JIRA_USER="JIRA_USER"
    export JIRA_PASSWORD="JIRA_PASSWORD"
    

PIP (recommended)

pip install jtrack

Manual

git clone https://github.com/rotemreiss/jTrack.git
cd jTrack
pip install .

Recommended Python Version

jTrack was developed and tested only with Python3.


Usage

Short Form Long Form Description
-h --help Show this help message and exit
-p --project The project's name on Jira (e.g. EXAMPLE).
-i --identifier A system identifier for the issue (unique key).
-s --summary Value for the summary field.
-d --description Value for the description field.
-a --attachment Path of file to add as attachment.
-l --labels Jira labels to add to new issues, separated by commas.
-j --jira-closed-status Jira statuses that are considered to be closed, defaults to 'Closed' and 'Resolved', separated by commas.
-t --jira-type Jira issue type for new tasks, deafults to 'Task'.
-se --skip-existing Do nothing if Jira already exists and open.
-q --quiet Do not print the banner.

Examples

  • List all options
    jtrack --help
  • Handle new "event" with the identifier (unique key) domain.com
    jtrack -p MY_PROJECT -i domain.com -s "This is the subject"
  • With Labels
    jtrack -p MY_PROJECT -i domain.com -l SCAN-LABEL, DAILY-SCAN -s "This is the subject"
  • With attachment
    jtrack -p MY_PROJECT -i domain.com -s "This is the subject" -a /tmp/scan-results.log

Real-life Examples

WordPress Scanner

You are running a daily security scan for vulnerabilities with a tool like WPScan and you want to manage all the results for that domain in one (up-to-date) Jira task:

Just pass the domain name as the identifier and the report file as an attachment.

Take a look in the examples directory.

Subdomain Takeover Scanner

See https://github.com/rotemreiss/robusto/blob/master/hooks/_found_hook_jira_example


Roadmap

  • Extend the options (e.g. support other fields and custom fields)
  • Update description or/and fields and not only attachments
  • Generalize the decision and the action to support other actions (e.g. Slack and other ticketing systems)

Contributing

Feel free to fork the repository and submit pull-requests.


Support

Create new GitHub issue

Want to say thanks? :) Message me on Linkedin


License

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jtrack-1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

jtrack-1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file jtrack-1.0.tar.gz.

File metadata

  • Download URL: jtrack-1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for jtrack-1.0.tar.gz
Algorithm Hash digest
SHA256 ac55d512b33d0321c5ad2b3a7f7965c63a81a2f956b665d5aa820c1a03980f0f
MD5 8a0c69024af71b6a34a81ef46fe45b2f
BLAKE2b-256 6b4c1a6a70cbb97f0de241807288d6d58640c07d63a9435326a20b51c9a14c88

See more details on using hashes here.

File details

Details for the file jtrack-1.0-py3-none-any.whl.

File metadata

  • Download URL: jtrack-1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for jtrack-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a177d59bd8b103cf2ef994240cc8b154fe1af2c7aa71890b9a434bfdc4830404
MD5 35a93795b107568d73b449e03f4563bc
BLAKE2b-256 042a966f50ae788644cdfa43d255dd8aa0bb47883d6c2a2d5fdf945956504f9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page