Jira Cloud Automation rule to fetch values from a checkbox custom field

Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.

Summary

This article explains how to configure a Jira Cloud Automation rule to fetch values from a checkbox custom field.

Solution

When working with checkbox custom fields in Jira Cloud, each selected option is returned as text, such as "option 1", "option 2", etc. Jira Automation does not provide a direct "split into number" action, but smart values can be used to extract the numeric portion. You can achieve this by using the .match() smart value function with a regular expression.

Steps

  1. Select Space > ... (more action) > Space settings

  2. Open Automation

  3. Create or edit a rule

  4. Add a Log action or use it inside Branch, If condition, or any field update.

  5. Use the following smart value to extract the number from each selected checkbox option: {{issue.customfield_XXXXX.get("value").match("\d+")}}

    Replace customfield_12345 with your checkbox custom field ID.

Example

If the field contains:

  • option 1

  • option 2

Then the output will be: 1, 3

Note:

  • It works only when checkbox option text always contains a predictable numeric pattern.

  • If the field contains multiple selected options, Jira returns them as an array, and .match() extracts the numbers from each item.

  • Useful for routing, assigning priority, or triggering conditions based on numeric sequences.

Updated on November 25, 2025

Still need help?

The Atlassian Community is here for you.