---
title: "Create package in Release Management and assign Tags"
canonical: "https://help.releasemanagement.app/space/RM4J/3092611942/Create+package+in+Release+Management+and+assign+Tags"
format: markdown
---
> Macro (include)

# Topics

> Macro (toc)

# Introduction

This is the use case of creating Package, putting it in specific Column and assigning Tag to it. Why it’s important? - It shows how you can create multiple actions with Jira Automation and connect execution of one action with another.

# Step 1: Get Prerequisites in place

From another example you know how to: 

- [https://releasemanagement.atlassian.net/wiki/spaces/RM4J/pages/3092611531/Update+version+status+in+Release+Management+with+Jira+issue+status+update#Step-1%3A-Generate-Token](https://releasemanagement.atlassian.net/wiki/spaces/RM4J/pages/3092611531/Update+version+status+in+Release+Management+with+Jira+issue+status+update#Step-1%3A-Generate-Token)
- [https://releasemanagement.atlassian.net/wiki/spaces/RM4J/pages/3092611531/Update+version+status+in+Release+Management+with+Jira+issue+status+update#Step-2%3A-Find-out-some-properties-you-would-need-(e.g.-destination-ColumnID)](https://releasemanagement.atlassian.net/wiki/spaces/RM4J/pages/3092611531/Update+version+status+in+Release+Management+with+Jira+issue+status+update#Step-2%3A-Find-out-some-properties-you-would-need-(e.g.-destination-ColumnID))

# Step 2: Create Package with Jira Automation

Go to your **Project Settings**, select **Automation** and **Create rule**.

Select the **Trigger **and **Conditions **you need

Add **Send Web Request** action 

![image](media://ef9e07b5-4348-49eb-bb10-bfcbe506f5ed)

Add the following parameters:

**URL: **<https://your_jira_url/rest/release-management/1.0/**release**>

**Header: **<Name: Authorization, Value: <u><span style="color: #bf2600">**Bearer**</span></u> *Your Personalized Token*>

**Method:** <POST>

**Request Body:** 

```json
{
  "name": "Package for: {{issue.summary}}",
  "description": "Package Description",
  "versionIds": [],
  "virtualVersionIds": [],
  "columnId": your_column_id,
  "boardId": your_board_id,
  "startDate": "2023-11-01",
  "releaseDate": "2023-11-30"
}
```

> 📝 Please make sure you specify empty `versionIds` and `virtualVersionIds` arrays. Otherwise you get  the following response with error:
> 📝 
> 📝 `{ "errorMessages": [], "errors": { "versionIds or virtualVersionIds": "Required field" } }`

![image](media://7efba33e-a4db-4d64-8f89-9ecd5d5b86e8)

> ℹ️ **IMPORTANT**: Make sure that “Delay execution of subsequent rule actions until we've received a response for this webhook“ is enabled for package creation webhook. This will allow to create subsequent actions to assign additional properties to package for e.g. Add Comment, Assign Tag, Add Milestones, etc.)

# Step 3: Add subsequent action (e.g. to Assign Tags to Package)

Create another Webhook action

![image](media://8515bd08-a5ce-44b6-b554-30f6453ae554)

Add the following parameters:

**URL**: https://your_jira_url/rest/release-management/1.0/**tag**/release/{{**webhookResponse.body.id**}}

> ℹ️ **webhookResponse.body.id** is the ID of Release you created on previous step.

**Header: **<Name: Authorization, Value: <u><span style="color: #bf2600">**Bearer**</span></u> *Your Personalized Token*>

**Method:** <PUT>

**Request Body:** Array

```json
["MyTag","AnotherMyTag"]
```

> ℹ️ IMPORTANT: make sure that tags don’t have any spaces inside. “*AnotherMyTag*“ - OK; “*Another My Tag*“ - is NOT OK

Save the step and the whole rule.

Test it and make sure that the execution status is <span style="color: #006644">**Green.**</span>

> Macro (include)