Hello,
Can we covert the following
startdate = "2021-10-22T07:46:42Z"
startdateS = new Date()
startdateV = startdateS.parse("yyyy-MM-dd'T'HH:mm:ss+0100", startdate)
That is startdateV = 2021-10-22T07:46:42+0100
Can anyone help?
Regards,
Sunil
Where? I mean where is the code that you'll need to run going to be executed? Validator? Post function? Scripted field?
I am running this as JOB where I am getting the Date value as above and I am trying to convert it so that I can update this into a custom field.
Regards,
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, and what type of field is this custom field?
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.
Great, those are quite easy to populate - see https://library.adaptavist.com/entity/update-the-value-of-custom-fields-through-the-script-console for an example of doing it in the console (it'll translate straight into a listener)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to look into it but my main requirement is covert the above data to JIRA date format is there something similar because I couldn't find it the Library.
Regards,
Sunil
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.