Jira JSON Import Custom fields History

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

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

0 votes
Warren Levy Community Champion Aug 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?

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,266 views 5 10
Read article

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