Import attachments for comments with JSON Import

Hi,

I working now to migrate unfuddle tikets to JIRA and is working with some limitations:

1) I need to create associated tickets (Not sure if is possible on import when not all issues are created)

2) I have attachments only for issues and I looking to have also for comments.

 Documentations don't have any detail about that: 

https://confluence.atlassian.com/adminjiraserver072/importing-data-from-json-829827228.html

BTW: Source code have bad formating and copy & paste don't work. 

Here is current issue JSON format.

// JSON for issue 
{
          "externalId": "3927",
          "issueType": "Task",
          "summary": "Feature:  Be able to disable providers ...",
          "priority": "High",
          "attachments": [
            {
              "name": "Capture.PNG",
              "attacher": "dalleave",
              "created": "2015-07-01T14:36:59Z",
              "uri": "http://domain.com/attachments/6603-d/Capture.PNG",
              "description": "Capture.PNG"
            },
         "comments": [
            {
              "author": "andrey",
              "body": "in progress. Mihail will continue Monday\n",
              "created": "2015-06-28T01:39:30Z"
            },
            {
               // How to put attachments here in comment? 
            }
         ] 
]

 

Thanks for help!

Petrica.

  

1 answer

Hi Petrica.

I've never use JSON importing, but in CSV importing, you can use 2 fields to link issues and to create sub-tasks.

  • In your file you should use 2 additional columns whose headings should be named similarly to Issue Id and Parent Id.
  • Ensure each regular (non sub-task) issue is given a unique (sequential) number in the Issue Id column. Do not include any value in the Parent Id fields for regular issues.
  • To create a sub-task of a regular issue (or to link an issue with other) in your file, reference the unique Issue Id number of the regular issue in the Parent Id column. Do not include any value in the Issue Id fields for sub-tasks

Hope this be usefull for you!

 

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

823 views 5 17
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
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