Public Repository

Last pushed: 6 months ago
Short Description
Handy tool for creation of sub-tasks in JIRA
Full Description

JIRA Sub-tasker

This tool allows to create a bunch of similar sub-tasks for several "stories" in JIRA at once. It is highly customizable via config and also has a support of making dependencies (aka links) between newly created issues.

Installation and running

Using Docker

$ docker run -v <config_folder>:/config gooroo/jira-subtasker

Actual command-line switches, which will be available for you, depend on your configuration file (templates). Just run it like this to check:

$ docker run -v <config_folder>:/config gooroo/jira-subtasker --help

Configuration

The script is looking for a /config/config.yaml file.

Example of the config:

---
general:
  proxy: 'http://<proxy_ip>:<proxy_port>'

jira:
  user: your_username
  password: your_password

  base_url: 'https://jira.example.com/'

  client_cert:
    cert_path: './mega.crt'
    key_path: './mega.key'

subtasker:
  people:
    - person: &developer
        name: John Doe
        id: jdoe
    - person: &qa
        name: Jane Smith
        id: jsmith
  templates:
    - key: impl
      assignee: *developer
      help: create an implementation task
      summary: Implement necessary stuff
      description: |
        Implement all the necessary stuff or even more.
        The task can be resolved when everything is perfect.
      labels:
        - super
        - feature

    - key: tst
      assignee: *qa
      help: create a testing task
      summary: Test implemented stuff
      description: |
        Resolve only when there are no more bugs.
      dependsOn:
        - impl

There is also an !include feature available in configs. So in order to make it a bit more convenient you can split your config into several files like this, for instance:

config/config.yaml

---
jira:
  user: your_username
  password: your_password

  base_url: 'https://jira.example.com/'

subtasker: !include 'templates/my_team.yaml'

config/templates/my_team.yaml

---
people:
  - person: &developer
      name: John Doe
      id: jdoe
  - person: &qa
      name: Jane Smith
      id: jsmith
templates:
  - key: impl
    assignee: *developer
    help: create an implementation task
    summary: Implement necessary stuff

  - key: tst
    assignee: *qa
    help: create a testing task
    summary: Test implemented stuff
Docker Pull Command
Owner
gooroo