Hey i have a custom field that has a date and time value like '2021-04-30 18:30:00.0'
i want to copy the DATE portion only to the due date field
i can use the copy field JMWE function, but how do i strip the date out?
jira seems to want it in the format "d/MMM/yy" and will fail with a straight copy saying "invalid date format".
how do i transform this value using groovy or some other method?
Have you tried using the Copy Value From Field To Field post-function directly? It will strip the time portion automatically.
yup worked. perfect. glad to see it can handle this natively without over thinking it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
However, be careful about one thing: time zones. Jira handles Date objects (which contain date+time info) on the UTC time zone. So 2021-04-30 18:30:00.0 might end up being converted to 2021-05-01 if you are in the PST time zone and thus your date/time value is 2021-04-30 18:30:00.0-08:00
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.