Forums

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

Smart Value Dates Format Causing Error In Automation

Barnett Temwa Msiska July 10, 2022

Hi,

I have set up some automations when creating issues and one of the fields is a date field.

I am trying to set the date for this field by using smart values and formatting it. However, if I use {{now}} for the value, the automation runs without issue but if I try to format the date by, for example, using {{now.fullDate}}, the automation fails.

What am I missing? Please assist. Thanks

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Champion
July 11, 2022

Hi @Barnett Temwa Msiska and welcome to the community,

Could you please send a screenshot of your automation rule as well as the error message from an activation? This might give us deeper understanding of your problem.

Best
Stefan

Barnett Temwa Msiska July 13, 2022

Hi @Stefan Salzl herewith the screenshots. I do not however have access to the audit log due to my current plan. However, if I remove the field concerned (Highlighted in red in screenshot), the automation runs successfully.

Thanks,

Barnett

Screenshot 2022-07-14 at 06.18.14.pngScreenshot 2022-07-14 at 06.21.52.png

Stefan Salzl
Community Champion
July 14, 2022

Hi @Barnett Temwa Msiska ,
Thanks for the screenshots. The activation logs of the automation rule should be accessable in any Jira Plan.

At the top of your automation rule you can see the "Rule Details" and "Audit log". Could you click these options and send screenshots?

Furthermore regarding the field you are trying to edit:
Is this a custom field? What type is this field of?

 

Best
Stefan

Stefan Salzl
Community Champion
July 14, 2022

Hi @Barnett Temwa Msiska 

As far as I can confirm the date fields in Jira don´t accept fullDate (tried this in my instance --> see screenshot). This was a date-picker field. Tested it with Time & Date picker with similar result.

grafik.png

 

What would be your main reason to write fullDate to the field? The field (in case it is of type dateTime) would still show the timestamp and the date when filled with {{now}}.

Best
Stefan

Barnett Temwa Msiska July 14, 2022

Hi @Stefan Salzl thanks for the insight. I think I will just go ahead and use {{now}} and it shouldn't really be a problem.

The reason I wanted to use fullDate was purely for formatting reasons when viewing the data from the issue. 

Thank you for your assistance.

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
July 14, 2022

Hi @Barnett Temwa Msiska 

you‘re welcome ;)

Best
Stefan

Suggest an answer

Log in or Sign up to answer