---
title: "\"Release date\" autofill for Packages"
canonical: "https://help.releasemanagement.app/space/RMC/2922774561/%22Release%20date%22%20autofill%20for%20Packages"
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

Release date is not a required field for packages and could be missed. Sametime you might want to autofill it when it comes to terminal state.

The below example show how to execute it with [https://releasemanagement.atlassian.net/wiki/spaces/RMC/pages/2522284033](https://releasemanagement.atlassian.net/wiki/spaces/RMC/pages/2522284033) 

# Step 1: Create Release Automation rule

Open Release Automation and click **Create.**

Define some name for your rule and select “**Package**“ for rule scope.

Add “**Package Moved**“ trigger.

![image](media://2b413733-701c-4b02-bb8f-68a27e18917a)

Add field condition to execute the rule at the **terminal** step only.

![image](media://2210b829-5882-4bb7-9de0-58455f3a7ee9)

# Step 2: Get API Access Token

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

# Step 3: Add Webhook to setup Release Date

Create a new webhook that will follow the previous one 

- **Name**: Set Package Date
- **Method **PUT
- **URL**: [https://rmcloud-prd.releasemanagement.app/api/1/package/{{entity.id}}](https://rmcloud-prd.releasemanagement.app/api/1/package/%7B%7Bentity.id%7D%7D)
- **Body**: {"releaseDate":"{{date.now(0,'yyyy-MM-dd','GMT+0')}}"}

![image](media://03b7a9de-a3dd-4988-b333-8951da276ceb)

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-130601.png](media://b1f194f7-a8b7-4f39-9c1b-24f62f28b864)

**Save **the webhook

![image-20251113-130658.png](media://bd8efb1c-7216-4a2f-b906-8596fc7ba556)

**Save **the rule 

# Step 4: Execute and test it!

Test it by moving the package to the defined status. 

> 📝 **NOTE**: The date will be updated in 30 seconds in the UI when push updates reach the front end of the App

Check the execution result in the webhook history.

![image](media://dfbbbfce-2842-4361-8bad-b1625fce0568)

> Macro (include)