---
title: "How to map Jira custom fields to label metrics in Foxly?"
canonical: "https://support.appfire.com/space/SUPPORT/602538351/How%20to%20map%20Jira%20custom%20fields%20to%20label%20metrics%20in%20Foxly%3F"
format: markdown
---
If you like a label style of metrics in Foxly and want to keep using them, you can map custom field values corresponding to which label. 

Let's imagine that we need to map a Jira custom field called "**shirt**" (*the type of this field is short text*).

**1-**  First is necessary to access the **Priorities** tab, located on the hand-left of the project menu. Then, click on the **customize** button. 

![image](media://c37aa37f-b502-42bc-a443-82fb0d615bc2)


**2**- It will load the settings of the prioritization template. In the example below, we’re using the **Quick Wins **template. 

Click on the **label **(*Effort)* metric, and select the option **store values in custom field**. Then, click on the button **Save Changes. **

![image](media://ace2b84b-9175-42c7-a052-247901519dbe)

**4- ** Navigate to the project settings, then click on **Automation. **

**5- **In the automation settings, click on** create a rule,** then the trigger is the* ***Field value changed***, *search and select the custom field ***Shirt****, then click on**** Save. ***

![image](media://b5d0724b-a806-4187-94c7-5ac25e427b50)


***6-**** *Click on the **Add component**, and select the **new branch.** Then, select** Branch rule. **

> ℹ️ By using the Branch rule it's possible to update the Foxly label metric with the right value, only when it matches the right condition.

**7**-  The next step is to add a condition, to assign the XS label to the Label metric in Foxly, use the JQL condition;

"shirt[Short text]" ~ "XS"

**8-** Then, set an action to update the label field in Foxly.

> ℹ️ Please note, As the metric in Foxly is a custom field, it's necessary to add a custom field ID in the **Additional fields** section**. **To find the Effort (label) custom field ID is necessary to know the name of the template. In my example, it will be **Effort - Quick Wins.  **Therefore, to find the ID of these custom fields, use this guide**. ****[How to find the id for custom field(s)?](https://confluence.atlassian.com/jirakb/how-to-find-id-for-custom-field-s-744522503.html)**

```json
{
"fields":
{
"customfield_10127" : 1
}
}
```

The JSON needs to be written with the *custom field ID and the value ID*. In the example below, Effort is the metric, " Quick Wins" is the template, and the value ID is 1. 

![image](media://36765d1a-684e-41d4-8583-9e81c59bcf00)

**9-** Create a branch rule for each Effort value metric and change JQL conditions accordingly. This automation will be displayed like the screenshot below:

![image](media://923d50ff-52d5-47b1-8f16-8a0c31e17346)


> ℹ️ Need help? Contact our support team by clicking on the following link:** **[Jexo Foxly Support](https://jexo.atlassian.net/servicedesk/customer/portal/4)**.**