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 Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
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