Configure Jira Catalog Integration - Rafay Product Documentation

Getting Started with Jira Workflow Approval

Overview

This guide explains how to use the Jira Workflow Approval catalog to enforce approval-based gating in resource provisioning workflows. It helps administrators integrate Jira approval steps into automated infrastructure deployments.

Approval Workflow Execution

A Jupyter Notebook template is used in this guide as an example to demonstrate how the Jira Workflow Approval works. When the workflow handler is attached to an environment template, it automatically triggers upon launch and creates a Jira ticket for approval. Provisioning proceeds only after the ticket is approved.

The same process applies to any environment template where approval-based gating is required.

Prerequisites

Before proceeding, ensure the following:

Initial Setup

This involves selecting an environment template, configuring the workflow handler, and sharing both with the appropriate project for end-user access.

Role Action
End User Selects Environment Template from System Catalog
Platform Admin Selects Jira Workflow Approval Handler from System Catalog
Platform Admin Shares Environment Template and Workflow Handler

End User Flow

When the end user deploys the shared environment template, the attached workflow handler triggers a Jira ticket. Provisioning proceeds only after the ticket is approved.

Step Outcome
Launches Environment Template Creates Approval Ticket
Provides Ticket URL
Approves or Declines Ticket
Proceeds with Environment Provisioning

Part 1: Create Jupyter Notebook Template

To begin, create a Jupyter Notebook:

The Environment Template page appears, allowing users to provide the required inputs and deploy the notebook. Refer to the Jupyter Notebook Deployment page for detailed steps on how to deploy a notebook.

Part 2: Share the Jira Workflow Approval Handler

Step 1: Select the Jira Workflow Approval Template

Step 2: Configure the Jira Integration

Input Variables for vCluster System Template

Name Value Type Description
debug Text Enables verbose logging for troubleshooting purposes
configuration_fqdn Text Fully qualified domain name of the Jira instance
configuration_api_user Text Username used to authenticate API requests to Jira
configuration_api_token Text API key used to authenticate requests to the Jira server
configuration_approved_state Text Jira ticket status that indicates the request has been approved
configuration_denied_state Text Jira ticket status that indicates the request has been denied
configuration_project Text Jira project name
short_description Text Short summary of the resource request
description Text Detailed description of the resource request
assignee Text User to whom the Jira ticket is assigned
priority Text Priority level for the Jira ticket

Ticket Approval and Denial States
The Jira workflow handler checks the status of the ticket to determine whether to proceed with resource provisioning. The following variables must be configured: - configuration_approved_state: Status value (e.g., Approved, Done) that indicates approval. - configuration_denied_state: Status value (e.g., Rejected, Cancelled) that indicates denial. These values must match the exact status strings used in the Jira project's workflow. Mismatched or incorrect values may result in the ticket not being recognized as resolved, blocking further actions.

Once the changes are complete, users can view the workflow handlers list.

Part 3: Attach the Jira Workflow Handler to an Environment Template

💡 Recommended: Enable Skip On Destroy
It is generally recommended to enable Skip On Destroy when configuring Jira workflow handlers in self-service scenarios. Enabling this option ensures that the workflow handler is triggered only during environment provisioning and not during deletion. This prevents unnecessary approval requests or ticket creation when an environment is being removed. For specific use cases where notification or tracking during deletion is required, this option can be left disabled. In such cases, a ticket may be generated to inform stakeholders about the environment termination. This setting should be reviewed based on the expected behavior during the destroy phase of the environment lifecycle.

Part 4: Launch the Notebook Template

An output is displayed with the Jira link and ticket_number.

If declined, the remaining activities will not proceed.