jit-cli-0.2.0 is not a library.
JIT: JIRA Issue Tool
A simple Rust CLI tool to extract ticket ID and summary information from JIRA issues using the JIRA API.

Installation
This installs the jit command.
Usage
Standard output
# Using a ticket ID
# Using a JIRA URL
Example output:
Ticket: ISSUE-123
Summary: Fix the login button in Safari
Text output (compact format)
Example output:
ISSUE-123: Fix the login button in Safari
JSON output
# Using a ticket ID
# Using a JIRA URL
Example output:
Detailed Information (Table)
View detailed information about a ticket in a well-formatted table:
# Using a ticket ID
# Using a JIRA URL
Example output:
TICKET DETAILS
ISSUE-123: Fix the login button in Safari
Type: Bug Priority: Medium
Status: In Progress Sprint: Development Sprint 27
Assignee: John Doe Reporter: Jane Smith
Created: 2023-09-15 Updated: 2023-09-16
Due Date: 2023-09-30
DESCRIPTION
The login button doesn't work properly in Safari browsers.
Steps to reproduce:
1. Open the login page in Safari
2. Click on the login button
3. Nothing happens
Expected: The login form should be submitted.
Actual: Nothing happens when the button is clicked.
Current Sprint Tickets
View your tickets in the current active sprint:
# View all your tickets in the current sprint
# Limit the number of tickets shown
Example output:
Current Sprint: Development Sprint 27
+-----------+----------------------------------+-------------------+
| Key | Summary | Status |
+-----------+----------------------------------+-------------------+
| PROJ-123 | Implement new login page | In Review |
+-----------+----------------------------------+-------------------+
| PROJ-124 | Fix responsiveness on dashboard | In Progress |
+-----------+----------------------------------+-------------------+
| PROJ-125 | Update API documentation | Done |
+-----------+----------------------------------+-------------------+
Configuration
The tool looks for JIRA credentials in the following locations (in order):
- Custom environment file specified with
--env-fileoption .envfile in the current directory.envfile in~/.config/jit/directory- Environment variables set in your shell
When running for the first time, create a .env file in your home directory at ~/.config/jit/.env with:
JIRA_BASE_URL=https://your-company.atlassian.net
JIRA_API_TOKEN=your_api_token_here
JIRA_USER_EMAIL=your_email@example.com
With this configuration, you can run the tool from any directory on your system.
Setup
- Clone the repository
- Create a
.envfile in the root directory with the following variables:JIRA_BASE_URL=https://your-company.atlassian.net JIRA_API_TOKEN=your_api_token_here JIRA_USER_EMAIL=your_email@example.com - Get a JIRA API token from Atlassian's API tokens page
- Run
cargo build --release
API Token Creation
- Go to https://id.atlassian.com/manage-profile/security/api-tokens
- Click "Create API token"
- Give it a name like "JIRA Title CLI"
- Copy the token and save it in your
.envfile