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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

424 views 2 4
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