---
title: "Automatically create new Virtual Versions for each client in the Package"
canonical: "https://help.releasemanagement.app/space/RMC/3597139969/Automatically+create+new+Virtual+Versions+for+each+client+in+the+Package"
format: markdown
---
> Macro (include)

# Troubleshooting?

> ℹ️ Have issues running Release Automation rules? Please check our troubleshooting guide - [https://releasemanagement.atlassian.net/wiki/spaces/RMC/pages/2522284033/Release+Automation+for+Jira+Triggers+Conditions+Actions#%F0%9F%86%98-Troubleshooting-Automation-Rules](https://releasemanagement.atlassian.net/wiki/spaces/RMC/pages/2522284033/Release+Automation+for+Jira+Triggers+Conditions+Actions#%F0%9F%86%98-Troubleshooting-Automation-Rules).

# Topics

> Macro (toc)

# Introduction

This guide addresses the following problem: 

> *The client wants to develop a core version of the product and plan a rollout for multiple customers, with separate work streams for rollout activities and client-specific customizations.*

We offer the creation of a release package that includes the core product versions. Once a version is complete and the package reaches the **“Ready for Rollout”** stage, automation will generate the corresponding virtual versions for planning rollout activities and add them to the package.

The package will also include a **Client** property (Multiselect) to specify which clients will receive the version during the rollout.

![image-20251007-075939.png](media://3bb79630-9820-49e5-864d-166c5d334177)

![image-20251007-075959.png](media://45d1abdf-5308-404a-8b2a-07107b2a1dfe)

Please contact our support team for a consultation on the proposed solution.

# Step 1: Prerequisites

Before we start, we would need to make some preparations as outlined below.

## Obtain Board ID

Copy it from the Board deep link URL 

![image-20251121-141455.png](media://a9fafff9-69a7-4488-a3aa-206e7d535914)

It should be in the format like *689f224795d4f8f2c90cc7b6*

## Generate Personal API token

Navigate to API tokens page

![image-20251121-141618.png](media://a05c4e3b-e8f3-433f-91fe-c11c133e7cae)

Create a new API token 

![image-20251121-141741.png](media://5f0e9d8c-c838-42c4-8f1c-7d6e5548d29a)

It should be in the format like the following: *1126eda3223af075594c3f500:3ba2a7efbe342edwef5d373cc378343434329513598665ea0d45462130dffd67f43rfedf322ea2a3erdfdffc801fgf08*

# Step 2: Configure Jira Automation to create Virtual Versions in Release Management via API

Navigate to Jira automation and create a new rule. The rule can be global or project-specific.

Add the trigger “**Incoming webhook**” with the following configuration:

![image-20251007-080338.png](media://19a050b3-5794-4287-b238-ef0977ec5937)

Add “**Advanced branching**” and “**For Each**” to iterate through the data received from the webhook. Include the following smart value:

```
{{webhookData.Client.split(",")}}
```

and variable name:

```
clientName
```

![image-20251007-080739.png](media://0117e165-9a1a-4a5d-8c05-88faa12ff13d)

Add “Send web request“ action to create new Virtual Version

**Request URL**: [https://rmcloud-prd.releasemanagement.app/api/1/version](https://rmcloud-prd.releasemanagement.app/api/1/version)

**Method**: POST

**Web request body**: Custom

```
{
  "basedOn": {
    "type": "jql",
    "value": "updated >\"2028/01/01\""
  },
  "name": "{{clientName}}  - {{webhookData.entityName}} Rollout",
  "releaseDate": "2025-10-08",
  "rolloutEndDate": "2025-10-08",
  "boardId": "YOUR_BOARD_ID"
}

```

Replace **YOUR_BOARD_ID** with the actual Board Id from the preparation step. 

> ℹ️ The JQL value can be a dummy one, as in our case, or replaced with a meaningful one to extract specific tasks from the Jira rollout.

You can skip the Release and Rollout end dates if needed or replace them with the Start and Release dates.

Enable “**Delay execution of subsequent rule actions until we've received a response for this web request**“

![image-20251007-081946.png](media://915a7dfa-a928-462b-ac38-2ecb654e4843)

Add a header: **X-RM-Token** and put your personal API token from the preparation step: 

![image-20251007-081832.png](media://d6e656cc-a382-4c7e-8b19-52921629f413)

Add “**Create variable**” action

Variable name

```
newVirtualVersionId
```

Smart value

```
{{webResponse.body.id}}
```

![image-20251007-082146.png](media://7b2a8db9-acc5-41be-acbc-c2d0b89d83ec)

Add a new webhook for adding a virtual version to the package:

**Request URL**: [https://rmcloud-prd.releasemanagement.app/api/1/package/{{webhookData.entityId}](https://rmcloud-prd.releasemanagement.app/api/1/package/{{webhookData.entityId})}/versions

**Method**: POST

**Web request body**: Custom

**Custom data:**

```
[{"id":"{{newVirtualVersionId}}","type":1}]
```

Enable “**Delay execution of subsequent rule actions until we've received a response for this web request**“

![image-20251007-081946.png](media://915a7dfa-a928-462b-ac38-2ecb654e4843)

Add a header: X-RM-Token and put your personal API token from the preparation step: 

![image-20251007-081832.png](media://d6e656cc-a382-4c7e-8b19-52921629f413)

Save and enable the rule

<span style="color: #bf2600">*(!!!) Copy URL and Secret from the Incoming Webhook*</span>

![image-20251007-084243.png](media://a4c87b27-b99b-430c-bad4-4ff9f43af8b9)

# Step 3: Configure Release Management to trigger Jira Automation

Navigate to the board settings-> Automation and create a new rule:

![image-20251007-084551.png](media://ae30b754-bf2b-4f66-bb7f-8446767cb49a)

Set scope “Package“ and trigger “Package moved“:

![image-20251007-084752.png](media://67be301c-9615-40d8-b83e-36a5db791c4c)

Add a condition “Field condition“ and define a status that will trigger the rule 

![image-20251007-084909.png](media://eabf94e1-6e6f-42ae-9921-8b6e43647d07)

Add action “Invoke Jira Automation“. Paste here URL and Secret from the previous step.

![image-20251007-085007.png](media://dc78a9ea-9982-4a47-8b8d-110e0d0baa99)

Save the action and the rule

> Macro (include)