How to import "Resolved" date for issues via JSON

Including a property named "resolved" or "resolutiondate" on an issue in a JSON import file yields a message like:

java.lang.RuntimeException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "resolutiondate" (Class com.atlassian.jira.plugins.importer.external.beans.ExternalIssue), not marked as ignorable

at [Source: java.io.StringReader@5fe3cffa; line: 29131, column: 36] (through reference chain: com.atlassian.jira.plugins.importer.external.beans.ExternalProject["issues"]->com.atlassian.jira.plugins.importer.external.beans.ExternalIssue["resolutiondate"])

How can the resolved date be set for issues imported via JSON import?

1 answer

Hey Benjamin

Yes it's possible - "resolutiondate" property should be working. It's a part of issue object. Are you sure, you have put it in the proper place? I'm attaching below a working example of issue object (timestamp and simple date format should work fine):

{
                	"key"				: "VOT-2",
                    "priority"			: "Major",
                    "issueType" 		: "Task",
                    "reporter" 			: "sdv",
                    "assignee" 			: "sdv",
                    "summary" 			: "Issue with resolution",
                    "status" 			: "Closed",
                    "resolution" 		: "Resolved",
                    "resolutionDate" 	: 1388534400000,
                    "description" 	: "Issue without resolution",
                    "voters"		: [ "admin", "sdv" ]
                }

Was this documented anywhere? I was having problems simply because I could find no example as you have provided here. I see now that there were two problems with my method: 1 - I used all lowercase resolutiondate instead of resolutionDate, 2 - I was representing the date in string format. Is it required to represent the date as a Javascript timestamp?

Sorry, I see now after re-reading your comment that a simple date format should work like my other dates. So I guess my only problem was using resolutiondate instead of resolutionDate. I will hopefully get a change to try that correction this week.

We are trying to keep CAC page always up-to-date: https://confluence.atlassian.com/display/JIRA/Importing+Data+from+JSON. And there's no example of resolutionDate - I'll let know about that to our Documentation team, it should be added soon.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,338 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot