loading...

JIRA Workflow task from YAML files

diegonalvarez profile image Diego ・1 min read

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.

Posted on by:

diegonalvarez profile

Diego

@diegonalvarez

I'm from Argentina. Web Developer since 2012 and trying some devops from 2015. AWS Architect Associate, San Lorenzo football fan, thinking to be a 90% Digital Nomad soon. Happy to networking.

Discussion

markdown guide