Skip to main content

GitLab Jira Integration

Project description

GitLab JIRA Integration

This tool automates the creation of Jira issues and subtasks based on templates, with the ability to dynamically populate subtask descriptions from version-specific files.

Features

  • Create Jira issues from predefined templates.
  • Automatically create subtasks associated with the main issue.
  • Dynamically populate subtask descriptions with content from files stored in a versioned directory structure.
  • Use variables (like version, application name, etc.) to customize issues and subtasks.

How it Works

The integration uses a YAML configuration file (.gitlab-jira-integration.yml) to define templates for Jira issues and their corresponding subtasks.

When a new issue is created using a template:

  1. A main issue is created in Jira based on the template's summary, description, and other fields.
  2. For each entry in the subtasks list of the template, a corresponding subtask is created under the main issue.
  3. The tool then looks for a directory under tests/versions/ that matches the VERSION variable provided.
  4. Inside that version directory, it searches for a file whose name (excluding the extension) is a case-insensitive match for the subtask's summary.
  5. If a matching file is found, its content is appended to that subtask's description.

Example Workflow

  1. You have a subtask template with the summary: Deploy Frontend Application.
  2. You trigger the process with the version 2.5.1.
  3. The tool will look in the directory: tests/versions/2.5.1/.
  4. It will search for a file like deploy frontend application.txt, Deploy Frontend Application.md, etc.
  5. If found, the contents of that file are added to the description of the "Deploy Frontend Application" subtask in Jira.

Configuration

See the .gitlab-jira-integration.example.yml file for a detailed example of how to configure your templates and issue types.

Usage

The main entry point is the JiraClient class, which can be used to create issues from your defined templates. You will need to provide the necessary variables (like VERSION) when calling it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab_jira_integration-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitlab_jira_integration-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file gitlab_jira_integration-0.1.0.tar.gz.

File metadata

  • Download URL: gitlab_jira_integration-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for gitlab_jira_integration-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6284e732cadeeca2c00a195343c456d2e033ee9b0b2d82fdf6375dcfc8cc1875
MD5 214e13c2e099e9a9feee916dea9cb34a
BLAKE2b-256 e1867f80a2d31c566c5655cc906055d10d3c55136f11bf421fa8d24601216ba3

See more details on using hashes here.

File details

Details for the file gitlab_jira_integration-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gitlab_jira_integration-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3421edcebf4eb7612330fae75f84ad8a1f84593d55491d8323fffb8ec3fdb8e9
MD5 7a4cfe0e00978845971fb18a0601e4e1
BLAKE2b-256 1cd0304b8450891a3210dbe0d052d62c4ba5e42ece8b26f3fc3c9151df3e3808

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page