Forums

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

How to Populate a Date Picker Custom Field with Last Comment Date Using Automation Smart Value

Rebecca Lewis
Contributor
January 29, 2024

I am trying to populate a custom field "Last Comment Date" (date picker type) with the date of the last comment on the issue using JIRA Automation. I am new to using the smart values in Automation and can't get it to populate the field. This worked previously, when I had the field set up as a text string type, so I know the trigger is correct and thought the field I am using would be too, but now that I have updated it to a date picker it won't work. Any suggestions? Is it possible I am using the wrong smart value?

 

{
"fields": {
"Last Comment Date" :"{{now.shortDate}}"
}
}

Screenshot 2024-01-29 at 4.48.45 PM.png

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.
January 29, 2024

Hi @Rebecca Lewis 

Please try using {{now}} without the shortDate part.

Adding a format to a date converts it to text.  Removing it should work to set a date field.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events