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:
- A main issue is created in Jira based on the template's
summary,description, and other fields. - For each entry in the
subtaskslist of the template, a corresponding subtask is created under the main issue. - The tool then looks for a directory under
tests/versions/that matches theVERSIONvariable provided. - Inside that version directory, it searches for a file whose name (excluding the extension) is a case-insensitive match for the subtask's summary.
- If a matching file is found, its content is appended to that subtask's description.
Example Workflow
- You have a subtask template with the summary:
Deploy Frontend Application. - You trigger the process with the version
2.5.1. - The tool will look in the directory:
tests/versions/2.5.1/. - It will search for a file like
deploy frontend application.txt,Deploy Frontend Application.md, etc. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6284e732cadeeca2c00a195343c456d2e033ee9b0b2d82fdf6375dcfc8cc1875
|
|
| MD5 |
214e13c2e099e9a9feee916dea9cb34a
|
|
| BLAKE2b-256 |
e1867f80a2d31c566c5655cc906055d10d3c55136f11bf421fa8d24601216ba3
|
File details
Details for the file gitlab_jira_integration-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gitlab_jira_integration-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3421edcebf4eb7612330fae75f84ad8a1f84593d55491d8323fffb8ec3fdb8e9
|
|
| MD5 |
7a4cfe0e00978845971fb18a0601e4e1
|
|
| BLAKE2b-256 |
1cd0304b8450891a3210dbe0d052d62c4ba5e42ece8b26f3fc3c9151df3e3808
|