JSON importer ignoring fixedVersion and Components

I'm trying to import issues from our legacy tracking system into Jira.  Imports work, but for some reason components and fixedVersions are ignored.  The values I'm submitting are valid, and there are no errors, it's just not showing up in imported issue. Here's my JSON.  Any insight would be greatly appreciated.  

 

{ 
          "issueType" : "Production Defect",
          "status"  : "Initial Review",
          "summary" : "Some Summary",
          "priority" : "Medium",
          "reporter" : "someuser",
          "assignee": "someuser",
          
          "created" : "2012-12-10T08:49:46.161+0500",
          "updated" : "2014-10-09T12:01:04.161+0500",
   
          "components" : ["Administration"],
          "fixedVersions" : ["2.5"],
}

3 answers

1 accepted

The JSON Importer assumes that Components and versions mentioned in issue object already exist. If you'd like to create versions, components and issues in one JSON file you will need to add them to project object. Here's a sample JSON file:

{
    "projects": [
        {
            "name": "For Version Project",
            "key": "FVP",
            "description": "This is testing project to check how versions are imported",
            "versions": [
                {
                    "name": "2.5",
                    "released": false,
                    "archived": false,
                    "releaseDate": "2013-08-31T00:00:00.00",
                    "startDate": "2012-08-31T15:59:02.161",
                    "description": "Some description for 2.5"
                }],
            "components": [
                "Administration"
            ],
            "issues": [
                {
                    "issueType" : "Production Defect",
                    "summary" : "Some Summary",
                    "priority" : "Medium",
                    "reporter" : "someuser",
                    "assignee": "someuser",
           
                    "created" : "2012-12-10T08:49:46.161+0500",
                    "updated" : "2014-10-09T12:01:04.161+0500",
    
                    "components" : ["Administration"],
                    "fixedVersions" : ["2.5"]
                }
            ]
        }
    ]
}
0 votes
Volodymyr Krupach Community Champion Feb 21, 2015

Hi Dennis!
I guess that matching Component and Fix Version should exist in JIRA and only then import will tie the imported issues to them.

 

Thanks Przemyslaw. Absolutely right. I just needed to add versions.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,853 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot