Forums

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

date time picker custom field

Harshad Prajapati October 2, 2024

I have created date time picker custom field and when Status changed to reopen status it set current date to "ReOpen date" custom field like this

 {{#=}} {{now}} {{/}}

But it is giving following error can you please suggest

 

Edit issue
Error rendering smart-values when executing this rule:
Unknown operator : at character position 14: 2024-10-02T08:29:39.6+0000

Thanks,
Harshad

3 answers

3 votes
Jovin
Community Champion
October 2, 2024

Hey @Harshad Prajapati 

Dates can sometimes be quite frustrating to work with in Automation Rules, however, if you're looking to set it to the time of the rule triggering you should be able to just use {{now}}, like in the screenshot below. I've used "Due date" because I don't have a reopen date field.

Date Set Now.png

0 votes
John Funk
Community Champion
October 2, 2024

Hi Harshad - Welcome to the Atlassian Community!

How are setting the value? Through Automation Rule? I would suggest do it by a post function on the workflow. 

 

John Funk
Community Champion
October 2, 2024

Please share the entire rule. Also, again, I encourage you to look at solving it with a Post Function in your workflow. 

0 votes
Yash_reddy
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.
October 2, 2024

Hi @Harshad Prajapati 

Welcome to the Atlassian Community

Try this one {{now.shortDate}} and let me know if it worked

 

Yash_reddy
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.
October 2, 2024
Harshad Prajapati October 2, 2024

 

 

It is not working , giving following error

Error editing issues
CI-4121 (Check the format of ReOpen Date (customfield_10236))

I have tried so many options now,format("yyyy-MM-dd") and jiraDate but  it is giv

Yash_reddy
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.
October 2, 2024

@Harshad Prajapati  what is the Field type of customfield_10236.

Even just {{now}} is enough I have tested with Date Time picker.

If this is not working please share the rule screenshot.

Harshad Prajapati October 2, 2024

yes I have tird this it is working fine now

Suggest an answer

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

Atlassian Community Events