Jira JSON Import Custom fields History

David Pankov August 11, 2017

Hello everyone,

I have problem when im trying to import issue history through JSON import.

Im creating JSON like this one:

{
    "history" : [
        {
            "author" : "guest",
            "created": "2012-08-31T15:59:02.161+0100",
            "items": [
                 {
                    "fieldType" : "jira",
                    "field" : "Server",
                    "fromString" : "AAA",
                    "toString" : "BBB"
                  }
              ]
        }
    ],
}

Field "Server" is custom field created by me
When i import this in JIRA issue in history tab shows the name of the field like this: "issue.field.server" and not "Server".  As "field" property i tried to set the ID of the field and also did not worked.
I have 2 questions:
1. What am i doing wrong?
2. the property fieldType shows what? is it posible that to be the problem?

2 answers

2 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 22, 2017

Supply 'custom' for 'fieldType' when referring to customfields. This works fine.

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 11, 2017

Hi David

It's probably a dumb question, but are you POSTing this to an issue? i.e. you're adding to the ticket history from outside of Jira? If so, why?

David Pankov August 11, 2017

HI, im working on a migration from mantis to jira, by creating a json and importing it to JIRA through JIRA REST API JSON import.
Every issue has all data needed but the only place it fails is this one.

Suggest an answer

Log in or Sign up to answer