Automation Rule | Updating single-select custom field with value in the Description field
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
This article explains how to create an automation rule that updates a single‑select custom field using text from the issue description. Specifically, it shows how to automatically populate the “Environment detected” field with the value that appears after the “Environment:” keyword in the Description.
Solution
Create an Automation Rule as follows:
Trigger:
When: Work item created
Conditions:
Work item fields condition
Description
contains
Environment:
Actions:
Then: Create variable
Variable name: extracted
Smart value:
{{issue.description.substringAfter("Environment:").substringBefore("\n").trim()}}
Edit Work item
Choose Environment Detected from the field dropdown
Add JSON below in the Additional fields:
{ "fields": { "Environment Detected": { "value": "{{extracted}}" } } }
Update the Rule
Updated on February 24, 2026
Was this helpful?
Still need help?
The Atlassian Community is here for you.