Need to get a current date in a date picker custom field for an issue via post function (Set Value of Jira Misc Workflow Extension - JMWE) in Jira Data Center
Using {{now.format("d/MMM/yy")}}
However unable to get it
Is there any error? Please suggest
Hi @Vinay Sharma ,
What format are you trying to achieve here?
You can reference this documentation: https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html, this has a list of predefined formats that might suit your needs, else the custom format that @Humashankar VJ mentioned should work for give the date in this format "2024-11-24"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Vinay Sharma
If you found the solution please can you share it here?
You can mark that as the Accepted Answer then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vinay Sharma,
In JMWE you can use new Date() to get the current date.
JMWE provides hints on the Expected Value tab, you can check them to get example values for each field type:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly try correcting the date format and give a try to keep moving
{{now.format("yyyy-MM-dd")}}
To learn more - Changing format of Date Time Picker custom fields
Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.