Import attachments for comments with JSON Import

Petrica Chiriac December 7, 2016

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

0 votes
Aylin Kohls
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.
December 7, 2016

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 Sign up to answer