Skip to content

Jira Issues Creator automates the creation of epics, stories, tasks, and sub-tasks in Jira using structured YAML configuration files. It eliminates manual data entry and ensures consistency through predefined configurations.

License

Notifications You must be signed in to change notification settings

imatza-rh/jira-issues-creator

Repository files navigation

Jira Issues Creator

Jira Issues Creator automates the creation of epics, stories, tasks, and sub-tasks in Jira using structured YAML configuration files. It eliminates manual data entry and ensures consistency through predefined configurations.

For questions, feature requests, or to report issues, please visit our GitHub Issues page. We welcome your feedback and suggestions!

Motivation

Managing complex Jira projects often involves creating nested issues like epics, stories, tasks, and sub-tasks. Manual setup can be time-consuming and error-prone. Jira Issues Creator addresses these challenges by automating the process, ensuring efficiency and accuracy through:

  • Templating and Routines: Streamline recurring tasks with stored templates, reducing manual effort.
  • Procedures and Documentation: Facilitate Jira issue creation for procedures and documentation using predefined files, which is useful during meetings or planning sessions.
  • Automation: Simplify issue creation and configure fields like story points, sprints, and links after initial issue creation.

Features

  • Secure Authentication: Authenticates with Jira using API tokens.
  • Custom Field Mapping: Maps Jira’s custom fields to your project needs.
  • YAML-Based Automation: Automates complex issue structures with YAML files.
  • Post-Creation Configuration: Sets additional fields after issue creation.
  • Version Control: Store configuration files in source control for version tracking and integrity.

Requirements

Setup

  1. Clone the Repository and Navigate to It:

    $ git clone https://github.com/imatza-rh/jira-issues-creator.git
    $ cd jira-issues-creator
  2. Install and Set Up the Tool:

    $ make install

    This command:

    • Sets up a Python virtual environment.
    • Installs required dependencies.
    • Creates a wrapper script in ~/.local/bin/ for global tool access.
    • Ensures ~/.local/bin/ is in your PATH.
  3. Configure Jira Settings:

    • Edit jira_config.yaml:
      • Set jira_url to your Jira instance URL.
      • Update jira_token with your Jira API token.
      • Customize jira_special_fields for your project.
  4. Define Jira Issues:

    • Edit jira_issues.yaml:
      • Replace <YOUR_JIRA_PROJECT_KEY> with your Jira project key.
      • Define epics, stories, tasks, and sub-tasks as needed.

Usage

After installation, use the tool from anywhere with:

$ jira-issues-creator [--help] --issues_list_file ISSUES_LIST_FILE [--jira_config_file JIRA_CONFIG_FILE] [--debug]

Help Menu Output

To see all available options and arguments, run:

$ jira-issues-creator --help

The output will be:

usage: jira-issues-creator [-h] -l ISSUES_LIST_FILE [-c JIRA_CONFIG_FILE] [--debug]

Automates the creation of epics, stories, tasks, and sub-tasks in Jira based on YAML configuration files.

options:
-h, --help              Show this help message and exit
-l ISSUES_LIST_FILE, --issues_list_file ISSUES_LIST_FILE
                        Path to the YAML file containing the list of Jira epics and issues to create. (default: None)
-c JIRA_CONFIG_FILE, --jira_config_file JIRA_CONFIG_FILE
                        Path to the YAML file containing Jira configuration. (default: path/to/jira_config.yaml)
--debug                 Enable debug-level logging for detailed output. (default: False)

Explanation of Files

Example

For detailed examples on configuring jira_config.yaml and jira_issues.yaml, refer to the Example File.

Makefile Overview

The provided Makefile simplifies the setup and management of the Jira Issues Creator tool. Below are the main commands available:

Help Output

To see all available Makefile commands, run make help:

Usage:
  make install       Install the tool
  make clean         Remove the virtual environment and wrapper script
  make uninstall     Clean up and remove installed files
  make update        Pull the latest changes and reinstall
  make help          Display this help message

Contribution

Contributions are welcome! Please submit pull requests with improvements or additional features.

About

Jira Issues Creator automates the creation of epics, stories, tasks, and sub-tasks in Jira using structured YAML configuration files. It eliminates manual data entry and ensures consistency through predefined configurations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •