On this page



Use case

Set any type of date field of an issue to the current date and time.



Configuration


Target issue*

Choose Current issue


Fields*



Select either a Date Time Picker field or a Date Picker field.


Expression*

Set the expression editor to General mode and enter the following expression:

%{dateTimeToString({system.currentDateTime} , "YYYY-MM-DDThh:mm:ss.sZ" , RUN_AS_LOCAL, RUN_AS_LANG)}


Alternatively, the expression editor can be set to Jira expression mode and the following expression can be used:

new Date()






Run as*

Choose which user* will execute the post function. By default, it is set to the Current user.


Add more steps according to your needs.





Related use cases




JWT feature

Workflow functionUpdate fields
Parser functionsdateTimeToString()
Label
Use case description

Set a Date Time Picker field to the current date

Complexity






Status
Tech review

Style guide