How set "Created" and "Updated" issue date values through REST API for "Ondemand Jira"


I am transfering bulk records ( ex: 5000 records ) from other sites to Jira. I am also using those information to create the issues in On demand jira.

I need to set "Created" and "Updated" date values respect to those records. How can set this values through REST API.

3 answers

1 accepted

0 votes
Accepted answer

You don't.

These fields are derived from the data on the issue at the time the issue is created or updated. You *can* set "created" as you import (I'm tempted to say you can set updated as well, but I'm really not sure). But once the issues are in Jira, you cannot directly change them.

That applies to the UI, let alone REST (and REST respects what the UI allows). If it was your own installation, you'd be able to write code to do the amendments, or even mess with them in the database (risky). But you can't do any of those things when on OnDemand.

Adding to Nic answer: you should create a date custom fields ('i.e. imported date', 'originally created', 'last updated on external system') and maybe a text field (or select) containing the originating system (i.e. 'Bugzilla', 'Old Bugzilla', 'Excel files'). It may help you to trace the issue back (this can be further improved if you have URLs to the original issues).


Please comment and/or vote for this get it sorted, eventually.

To highlight the request, I will need to migrate more than 40 projects : the csv import is too laborious, just to ensure that creation and modified date matches to previous bug trackers...

0 votes
I'm afraid that doesn't change the answer. You can't do it with rest. You will need to use csv

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

995 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you