Forums

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

Concatination of string and number to form a label

Prasanna Subramaniam
March 24, 2026

Dear Community,

 

I attempted to add an “Aging” label through a scheduled automation job, but I’m not getting the expected output.

My Scenario:
A ticket is created on Monday. When the scheduled job runs on Thursday morning, the automation should automatically update the label as Aging_3, where “3” represents the number of business days elapsed since the creation date.

The smart value
{{now.diff(issue.created).businessDays.abs}}
correctly returns 3.

However, when I try to prefix this value with "Aging_" using the concat function, I’m not getting the desired label.

Instead of producing Aging_3, the automation outputs:
{{"Aging_".concat(now.diff(issue.created).businessDays.abs}}

I have not defined any additional custom field to store this value — I need this to work directly within the Labels field.

 

Not sure what I’m missing here. Looking for guidance from the community.

 

1 answer

2 votes
Trudy Claspill
Community Champion
March 24, 2026

Hello @Prasanna Subramaniam 

Welcome to the Atlassian community.

Please show us a screen image of the step where you are performing the concatenation. There could be a syntax error in your usage.

I was not able to get it to work by using "Aging_" directly with the concat function. I ended up creating a variable named varAging and setting that to the string Aging_ and creating a second variable named varDiff set to {{now.diff(issue.created).businessDays.abs}}. Then I used the concat() function:

{{varAging.concat(varDiff)}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events