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

Hi,

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

This widget could not be displayed.

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).

HTH

Please comment and/or vote for this https://jira.atlassian.com/browse/JRA-38572to get it sorted, eventually.

This widget could not be displayed.

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...

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

55 views 1 0
Join discussion

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