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

This widget could not be displayed.

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

112 views 2 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