Hello,
I'm currently writing a migration script to import tickets from our ticketing system into JIRA service desk. I am using the REST API to interact with JIRA. I can create calls, but how can I set the create date?
Thanks.
Hello Daniel, Try this script:
import java.util.Date;
import java.util.Calendar;
import java.sql.Timestamp;
Date date= createdDate; Calendar cal = Calendar.getInstance(); cal.setTime(date);long millis = cal.getTimeInMillis();
Timestamp ts = new Timestamp(millis)
mutableIssue.setCreated(ts);
Thank Aleks,
I forgot to mention that I am using the REST API.
It looks like you're new here. Sign in or register to get started.