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.
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)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.