โ† Back to list

๐Ÿš€ From Manual Jira Work to One Command: Building a Subtask Automation CLI

๐Ÿ’ก The Problem

SAYALI GHOLAP ยท 2026-02-26 19:38 ยท 32 claps ยท 3.0 min read
#software-engineering #nodejs #automation #productivity #devtools
Open on Medium โ†—
Wiki topics: ๐ŸŒ ยท Web Development โฑ๏ธ ยท Productivity ๐ŸฅŠ ยท Combat Sports

๐Ÿš€ From Manual Jira Work to One Command: Building a Subtask Automation CLI

From Manual Jira work to Single command

From Manual Jira work to Single command

๐Ÿ’ก The Problem

If you work in a development team, youโ€™ve probably done this countless times:

Every time a Jira story is picked up, you manually create multiple subtasks:

  • Story analysis
  • Code changes
  • Unit testing
  • Dev testing
  • UX review

Itโ€™s repetitive. It breaks your flow. And over time, it adds up to a surprising amount of effort.

๐ŸŒฑ Inspiration & Motivation

In our team, we already had a shell script created by a colleague (someone I truly look up to) to automate this process.

It was a great starting point and genuinely helped reduce manual effort.

However, while using it regularly, I noticed a few areas where the experience could be improved:

  • Limited flexibility
  • Hard to extend for evolving needs

Instead of just tweaking the script, I wanted to take it a step further.

The goal was simple:

Build something that is easy to use, flexible, and scalable across the team

Thatโ€™s when I decided to build a proper CLI tool.

๐Ÿค” Why not use Jira Automation?

That was my first thought too.

But in many organizations:

  • I donโ€™t have access to Jira Automation
  • Or automation rules are restricted
  • Or requirements are still evolving

So I needed something:

  • Lightweight
  • Flexible
  • Developer-controlled

A CLI tool fit perfectly into this space.

๐Ÿ› ๏ธ The Idea

What if creating all Jira subtasks could be as simple as:

jira-subtask ABC-123

No clicking. No repetition. No context switching.

Just one command.

โš™๏ธ Building the CLI

I built a Node.js CLI tool that:

  • Uses Jira REST APIs
  • Creates subtasks in bulk
  • Is fully configurable

The structure is clean and simple:

  • config.json โ†’ Jira credentials & project details
  • tasks.json โ†’ Subtask templates
  • CLI command โ†’ Executes everything

๐Ÿง  Key Design Decisions

1. Config-driven approach

Instead of hardcoding values, everything is configurable:

  • Project ID
  • Task structure
  • Assignment logic

This makes the tool reusable across teams and projects.

2. Smart assignment handling

Each task supports flexible assignment:

  • SELF โ†’ assigned to current user
  • NONE โ†’ left unassigned

For example:

  • DEV tasks โ†’ assigned
  • UX Review โ†’ unassigned
  • Buddy Testing โ†’ unassigned

3. Flexible command options

The CLI supports multiple workflows:

jira-subtask ABC-123

๐Ÿ‘‰ Creates: DEV + QA + UX subtasks

jira-subtask ABC-123 --dev-only

๐Ÿ‘‰ Creates: DEV + UX

jira-subtask ABC-123 --qa-only

๐Ÿ‘‰ Creates: QA only

jira-subtask ABC-123 --skip-ux

๐Ÿ‘‰ Creates: DEV only

๐Ÿงฉ Why not rely only on AI / MCP?

With tools like GitHub Copilot and Atlassian MCP Server, itโ€™s possible to automate Jira workflows using prompts.

So a natural question is:

Why build a CLI when AI can do this?

In our case, consistency mattered more than flexibility.

We needed:

  • A standardized structure for subtasks
  • Predictable outputs every time
  • No dependency on crafting the โ€œright promptโ€

While AI is powerful, prompts can vary and lead to inconsistent results.

The CLI ensures:

  • Same structure
  • Same quality
  • Same workflow

every single time.

So instead of replacing AI, the CLI complements it by providing a reliable foundation.

๐Ÿ“ฆ Making it reusable

To make this usable for the entire team, I published it as an npm package.

Now anyone can install it with:

npm install -g jira-subtask-cli

And start using it immediately.

๐Ÿงช Real Impact

After using this internally:

  • โฑ๏ธ Subtask creation time โ†’ reduced from minutes to seconds
  • ๐Ÿ” Eliminated repetitive manual work
  • ๐Ÿ“Š Consistent task structure across the team

A small automation, but a meaningful productivity boost.

โš ๏ธ Challenges I Faced

A few interesting challenges along the way:

  • npm publishing issues (especially on Windows)
  • Handling CLI execution (bin configuration)
  • Managing Jira authentication securely
  • Designing flexible yet simple configuration

Each of these helped deepen my understanding of building developer tools.

๐Ÿง  What I Learned

  • Small problems are worth solving
  • Developer experience matters more than we think
  • CLI tools can be incredibly powerful
  • Consistency is often more valuable than flexibility

๐Ÿ”— Try it out

If this sounds useful, you can check it out here:

๐Ÿ‘‰ https://www.npmjs.com/package/jira-subtask-cli

๐Ÿ™Œ Final Thoughts

Sometimes, the most impactful improvements are not large systems, but small tools that remove everyday friction.

This CLI was one such effort โ€” and it made a real difference in our workflow.

๐Ÿ”ฎ Whatโ€™s Next?

In the next article, Iโ€™ll share how Iโ€™m experimenting with integrating this CLI with GitHub Copilot and the Atlassian MCP server โ€” and how these tools can work together to further streamline everyday Jira workflows.

Stay tuned!


๋ฉ”ํƒ€๋ฐ์ดํ„ฐ
post_id
4c4d7558f4ee
slug
from-manual-jira-work-to-one-command-building-a-subtask-automation-cli-4c4d7558f4ee
url
https://medium.com/@sayaligp/from-manual-jira-work-to-one-command-building-a-subtask-automation-cli-4c4d7558f4ee
canonical_url
https://medium.com/@sayaligp/from-manual-jira-work-to-one-command-building-a-subtask-automation-cli-4c4d7558f4ee
author_url
https://medium.com/@sayaligp
status
ok
fetched_at
2026-06-28 04:42:08