DEV Community

Diego
Diego

Posted on

1 2

JIRA Workflow task from YAML files

Use Case:

In our company we have different areas that work across JIRA tasks and Confluence.

Sometime we need to set around 20 tasks for a common target. This tasks are for example to get up and running some customizations from our customers.

In the example that i'm going to use we need:

  1. [1] Epic Task
  2. [4-5] Main Tasks for the different areas
  3. [4-5] Sub-tasks from each main task
  4. Relate the task to labels
  5. Relate the tasks between them
  6. Attach links (Zendesk, Confluence, docs, etc)

This actions at this moment are executed by one person, but sometimes you forget to do a task, or may be creation the relations between tasks (blocks, relates to). With this we avoid human mistakes, we set the structure and then the script auto-generates all the tasks.

JIRA Workflow tasks

This project allows to you create a workflow template to build tasks in Jira. You only need to set the specifications in multiples YML files, and then the script will generate the tasks and their relationships accordingly the YML configuration.

Requirements

This project uses two libraries:

This libraries are already loaded with composer

Getting Started

To get started it's necessary set some environment variables. You need to copy the .env.example file as .env file.

Here set the JIRA properties:

JIRA_HOST="https://your-jira.host.com"
JIRA_USER="jira-username"
JIRA_PASS="jira-password-OR-api-token"

Installing

Firts install composer to get the libraries installed.

composer install

Now it's necessary set the templates

Templates

The project already becomes with a example template. The templates are stored in the folder templates.

Template Folder

To get a project working you can copy and paste the structure of templates/example or create your own First create a folder inside …

So with this we can set many templates in the projects folder and run automated workflows.

Imagine monitoring actually built for developers

Billboard image

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay