---
title: "Sync Date/Time Properties with Milestones"
canonical: "https://help.releasemanagement.app/space/RMC/3709992961/Sync%20Date%2FTime%20Properties%20with%20Milestones"
format: markdown
---
# Troubleshooting?

> Macro (include)

> ℹ️ 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

The main objective of this guide is to create an automation cases to copy values from release date/time properties to the release milestones on any change so we could keep them in sync.

For the sake of this exercise, we will copy values 

- from **Date 1 **property to **Milestone 1**
- and **Date 2 **property** **to **Milestone 2**.

We also assume that **Milestone 1 **and **Milestone 2** will be automatically created from the default board settings with any new release created.

# 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://91c95b03-863b-4ca2-a6b5-255d1798f099)

It should be in the format like *689f224795d4f8f2c90cc7b6*

## Generate Personal API token

Navigate to API tokens page

![image-20251121-141618.png](media://2caf4b87-1f4c-4901-88ae-22bde98fe55f)

Create a new API token 

![image-20251121-141741.png](media://0c19da27-ed78-4638-8aac-6b8111ffeee6)

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

# Step 2: Configure Jira Automation to amend Milestones in Release Management via API

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

> 📝 You can import the following automation rule json:  or follow the below guide to create it from scratch.

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

⚠️ The settings will be visible after saving the whole automation rule

![image-20260112-175615.png](media://6267e29f-2f25-45bf-b492-b42e369f3ca6)

Add “**Send web request**“ action to extract all milestones for the version. Configure as shown in the screenshot below

**Request URL**: [https://rmcloud-prd.releasemanagement.app/api/1/board/<YOUR_BOARD_ID>/version/{{webhookData.entityId}}/milestone](https://rmcloud-prd.releasemanagement.app/api/1/board/%3CYOUR_BOARD_ID%3E/version/%7B%7BwebhookData.entityId%7D%7D/milestone) 

**HTTP method: **GET

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

**Add Header:**

**<Key**: X-RM-Token, **Value**: YOUR_API_TOKEN>

![image-20260112-180248.png](media://c8f4261d-53a8-4a70-89f7-fe42ba328cbb)

Add 2x “**Create variable**“ actions to find and extract IDs of the milestones with the predefined names

- Variable “**MilestoneOneId**“ with expression

> “*{{#webResponse.body}}{{if(equals(name,"****Milestone 1****"), id)}}{{/}}*“

to find ID for milestone with the name “**Milestone 1**“

![image-20260112-180654.png](media://71dfbfac-54a2-4904-9584-66dc2897aa1c)

- Variable “**MilestoneTwoId**“ with expression

> “*{{#webResponse.body}}{{if(equals(name,"****Milestone 2****"), id)}}{{/}}*“

to find ID for milestone with the name “**Milestone 2**“

![image-20260112-180823.png](media://83e26192-dd68-4ce8-a839-6fcd84b6d068)

Add “**if condition**” to check if Milestone with the name “**Milestone 1**“ is found, and if “**Date 1**” is not empty, to trigger the update 

> **Condition: ***{{MilestoneOneId}} is not Empty and {{webhookData.Date 1}} is not Empty*

![image-20260112-182711.png](media://9bb73bd0-84b6-4912-8a45-dded5bfbc451)

Add “**Send web request**“ action under this If to send a request for updating the Milestone 1

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

**HTTP method: **PUT

**Web request body**

```
{"date":"{{webhookData.Date 1}}"}
```

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

**Add headers:**

- **<Key**: X-RM-Token, **Value**: YOUR_API_TOKEN>
- **<Key**: Content-Type, **Value**: application/json>

![image-20260112-183248.png](media://409df9ec-2278-42b6-ab53-38d5329ef8cb)

Add “**if condition**” to check if Milestone with the name “**Milestone 2**“ is found, and if “**Date 2**” is not empty, to trigger the update 

> **Condition: ***{{MilestoneTwoId}} is not Empty and {{webhookData.Date 2}} is not Empty*

![image-20260112-183706.png](media://665c4f93-d238-4fd1-9234-705156658835)

Add “**Send web request**“ action under this If to send a request for updating the Milestone 2

Request URL: [https://rmcloud-prd.releasemanagement.app/api/1/version/milestone/{{MilestoneTwoId}](https://rmcloud-prd.releasemanagement.app/api/1/version/milestone/{{MilestoneTwoId})}

**HTTP method: **PUT

**Web request body**

```
{"date":"{{webhookData.Date 2}}"}
```

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

**Add headers:**

- **<Key**: X-RM-Token, **Value**: YOUR_API_TOKEN>
- **<Key**: Content-Type, **Value**: application/json>

![image-20260112-184124.png](media://fca1ca56-e1b3-4d8c-b802-dcc03af0787a)

Save the rule

# 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://80ea633b-756d-4f8e-8fec-16f8c2e74aba)

Set scope “Version“ (as this guide is for version but you could do the same for package)

> ℹ️ Please contact our support team to get details on how to adjust the guide to make it suitable for packages

Add trigger “**Version/Package custom property changed**“

![image-20260109-141741.png](media://6a64905a-c771-457f-b71e-2a4e0505dea0)


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

![image-20251007-085007.png](media://3be5fd16-1dd0-4529-9a44-9d6d292f0e3b)

Save the action and the rule

Test it out by changing Date 1 and Date 2 to verify that corresponding Milestones 1 and Milestones 1 have been changed.

> Macro (include)