I need to grab a value from datetime picker field using postfunction using issue.getCustomFieldValue method in one of the workflows and then load that same exact date value into issue input parameter (issueInputParameters.addCustomFieldValue) to create andother issue in a different project.
The problem is that source field data is returned as: "2019-01-16 13:37:00.0" and all my attempts to parse or format this string into the date format that Jira accepts fail with "unparseable date" message.
Is there a way to convert this string into date in one line without adding code for removing the trailing ".0" and then parsing date and time substrings separately and then concatenating back together?
Hi @Yan Ioffe
Did you get the solution for the above. I am even stuck at the same place where I am unable to remove that .0 while trying to load the issueinputparameters.
Appreciate your help on the same
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.