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.
Thank Aleks,
I forgot to mention that I am using the REST API.
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);
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.