π οΈ Jirun
A CLI tool that generates JIRA sub-task(s) with pre-populated field values.
Table of Contents
- β What Problem Does It Solve?
- π Quick Start
- β¨ Other Features
- π Usage
- π₯ Installation
- π§° Configuration
- β FAQ
- π License
β What Problem Does It Solve?
Manually creating repetitive JIRA sub-tasks can be time-consuming and error-prone. Jirun streamlines this by allowing you to generate sub-tasks with template, saving you time and ensuring consistency.
π Quick Start
- Initialize Configuration:
This creates .jirun.toml and .env files in OS preferred directory.
- Edit Configuration:
- In
.envset your JIRA user bearer token: the authentication to create sub-tasks. - In
.jirun.tomldefine server url, templated subtask field and value(s), and subtasks to be created when runningjirun templateandjirn newcommands.
- Dry Run
When you are not sure, this command prints out the raw payloads without sending the real request.
- Create new Sub-tasks
This command creates JIRA sub-tasks defined in [sub_tasks.new_tasks]. Each
subtask per line.
β¨ Other Features
- π Support generating global (
jirun init --global) or local (jirun init) config files. - π Detect and skip subtasks that are already existing.
π Usage
)
)
π₯ Installation
1. Script Install
For Linux/MacOS
|
For Windows (PowerShell)
iwr -useb https://raw.githubusercontent.com/xixiaofinland/jirun/main/scripts/install-jirun.ps1 | iex
[!NOTE] If you see an error like "This script contains malicious content and has been blocked by your antivirus software", it means Microsoft Defender flagged it for downloading and executing content from the internet. To proceed, either lower Defenderβs protection or break the script into smaller steps:
# Step 1: Review the script manually
Invoke-WebRequest -Uri https://raw.githubusercontent.com/xixiaofinland/jirun/main/scripts/install-jirun.ps1 -OutFile install-jirun.ps1
notepad install-jirun.ps1 # Inspect the content
# Step 2: Run after trust
powershell -ExecutionPolicy Bypass -File install-jirun.ps1
2. Cargo Install
jirun is published in creates.io here.
Run cmd below if you have the Cargo tool.
3. Manual Download
Visit the release page and download the appropriate binary for your operating system (Linux, macOS, or Windows).
π§° Configuration
Run .jirun init --global to generate the config template files.
.jirun.toml:
[]
= "https://yourcompany.atlassian.net"
[]
= ["cli", "auto"]
= "john.doe"
[]
= """
Design API schema
Implement service logic
Write integration tests
"""
= """
Fix login bug
Improve error messages
Document usage
"""
.env:
JIRA_TOKEN=your-api-token-here
β FAQ
- "difference between template_tasks for
jirun templateand new_tasks forjirun new"?
template_tasks is for storing reusable tasks you create repeatedly. new_tasks is
for ad-hoc subtasks you update frequently. Functionally, jirun template and
jirun new have the same underlying logic.
π License
MIT