Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get a value from a comment and assign it to a custom field

Rosana Casilli
Contributor
September 5, 2025

Hi All!

 

I need to write an automation rule where after adding a comment, if this comment has the value "Valor bruto:" or "Valor inicial:" or "Valor:", the value after the ":" is added to the customfield "Valor inicial".

can you please help me with this?

 

Thanks in advance,

Ro

1 answer

1 vote
Deivid Araujo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2025

Hi Rosana!

For that exact scenario, you will have to use regex to capture the string, but be aware that this approach may lead to various problems. including:

 

  • Unexpected matches (false positives): regex may capture unintended text.

  • Inconsistent formatting: extra spaces, line breaks, different ways of writing “Valor” or the number.

  • Multiple occurrences: regex may only grab the first or wrong match if more than one appears.

  • Localization issues: decimal/thousand separators (1.200,50 vs 1200.50).

  • Automation regex limitations: not all regex features (like lookbehinds) are supported.

  • Field type mismatch: target number fields may reject values like R$ 1.200,50.

  • Complexity/maintenance: regex rules can become too hard to read or adjust later.

 

That said, here's an article showing how to extract text using regex:

https://support.atlassian.com/jira/kb/extract-content-out-of-description-and-summary-with-regex-and-automation/

 

A regex tester:

https://regexr.com/39jba

 

As for the regex itself. it will depend on yout text patter (if any), so your best bet is to use any LLM to generate the regex string

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events