---
title: "Cascade Package Release Date update to its encompassing versions"
canonical: "https://help.releasemanagement.app/space/RMC/3344629761/Cascade%20Package%20Release%20Date%20update%20to%20its%20encompassing%20versions"
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

In the below use case, we would need to update versions release dates every time a package release date is updated. The solution consists of 2 parts, namely

- Release management automation rule that triggers
- Jira automation rule

# Step 1: Create Jira Automation rule to update versions

## Create an incoming webhook

Create an incoming webhook and select the option ”No work items from the webhook”  

![image-20250516-142733.png](media://1e0a82f8-ac6a-42fa-b8bd-d550625143c3)

## Obtain API Access Token

[https://releasemanagement.atlassian.net/wiki/spaces/RMC/pages/3168108545](https://releasemanagement.atlassian.net/wiki/spaces/RMC/pages/3168108545) 

## Get All Versions of the package

Add “Send Web Request action”

- **URL**: [https://rmcloud-prd.releasemanagement.app/api/1/package/{{webhookData.entityId}}?expand=true](https://rmcloud-prd.releasemanagement.app/api/1/package/%7B%7BwebhookData.entityId%7D%7D?expand=true)
- **Method**: GET
- **Body**: empty

Put a check box: “Delay execution of subsequent rule actions until we've received a response for this web request“

Open Headers and add header

> ***X-RM-Token:**** <personal_token_body>*

> ⚠️ At the same time, the Authorization header should be removed from the request if used.

![image-20251113-134830.png](media://38e3d589-4436-4eda-9260-d4357356579b)

## For each version update release date

Add for Each iterator

- **Smart value:** {{[webResponses.body.versions.id](http://webResponses.body.versions.id)}}
- **Variable Name**: nextVersionItemId

![image-20250516-143859.png](media://f46d7dc4-1119-4f21-abf1-9f9610a0217a)

Get the board ID by following a guide: [https://help.releasemanagement.app/space/RMC/2922184769/Create+a+new+virtual+version+in+case+a+new+Jira+issue+is+created#Step-1:-Prerequisites](https://help.releasemanagement.app/space/RMC/2922184769/Create+a+new+virtual+version+in+case+a+new+Jira+issue+is+created#Step-1:-Prerequisites)

Add “Send Web Request action”

- **URL**: [https://rmcloud-prd.releasemanagement.app/api/1/board/YOUR_BOARD_ID/jira/version/{{nextVersionItemId}}](https://rmcloud-prd.releasemanagement.app/api/1/board/YOUR_BOARD_ID/jira/version/%7B%7BnextVersionItemId%7D%7D)
- **Method**: PUT
- **Body**: Custom Data

```
{"releaseDate":"{{webhookData.releaseDate}}"}
```

Put a check box: “Delay execution of subsequent rule actions until we've received a response for this web request“

Open Headers and add header

> ***X-RM-Token:**** <personal_token_body>*

> ⚠️ At the same time, the Authorization header should be removed from the request if used.

## Save the rule

Save the rule and copy the webhook URL and Secret from the 1st step

# Step 2: Create Release Automation rule to to trigger Jira Automation on release date change

Open the board, navigate to the board settings, Automation, and create a new rule:

- Give a name to it
- **Scope**: Package
- **Trigger**: Package Release Date Changed
- **No Conditions**
- **Action**: Invoke Jira automation and add the link and secret from Jira Automation

![image-20250516-144935.png](media://df91892b-74d8-482a-bd1e-8d5567c8034c)

![image-20250516-144955.png](media://fca01f6f-1f2d-40e9-9919-d99420a6e0b6)

> Macro (include)