Smart value variable doesn't include the actual value

Susan Merola December 13, 2024

Hi everyone. I'm trying to create a smart value variable to use as part of an automation and I'm not sure why it's not working.

I want to add a label that shows the due date year when a particular kind of issue type is created. So for example if the due date is June 4, 2026, then a label that says "2026" would get added by the automation. 

This is what I've set up:
Screenshot 2024-12-13 112357 1.png

And then:
Screenshot 2024-12-13 112442 2.png

But this what gets populated:
Screenshot 2024-12-13 112548 3.png
Can anyone tell me where I'm going wrong? 

Thanks in advance for your help!


1 answer

0 votes
Bill Sheboy
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.
December 13, 2024

Hi @Susan Merola 

The Due Date field is a "date type" and Labels are text.  The date value must be formatted to be used as a label, as described here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Date-format---

For example, you could use this to get just the year value as text:

{{issue.duedate.format("yyyy")}}

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events