Hello, I'm trying to count how many dates of format
YYYY_Tx
exist in a Labels field and save this as a numeric value in another field. I try the below, but I keep getting erros. Any help on what is wrong? So the Labels has: 2024_T3 , 2025_T1 , etc
The error I get:
Unable to render smart values when executing this rule:
Failed to get value for issue.Labels.match('.*(\\d{4}_T\\d).*').size: { "fields": { "Overall effort": "{{issue.Labels.match('.*(\\d{4}_T\\d).*').size}}" } }
the expression I put in the edit issue field (to update the Overall effort numeric field):
{ "fields": { "Overall effort": "{{issue.Labels.match('.*(\\d{4}_T\\d).*').size}}" } }