Project

General

Profile

Batch import multiple issues via REST api

Added by James R over 11 years ago

I have been trying to batch import multiple issues to Redmine without success. Initially I tried redmine_importer but this does not seem to work with v2.3

I am now experimenting with the REST api using curl. Following the instructions here I can post issues individually but cannot understand how I can import a whole load at the same time? I was hoping to just be able to convert an excel file to one big json file and import everything in one go however when I try putting more than one issue in to the file it will only import the last one.

this is the curl command I am using:

curl -v -H "Content-Type: application/json" -X POST --data "@test2.json" -u asami morita localhost/redmine/issues.json

and this is the test2.json file:

{
  "issue": {
  "project_id": 9,
    "subject": "TEST5",
    "notes": "foobar",
    "priority_id": 2
  },
   "issue": {
  "project_id": 9,
    "subject": "TEST6",
    "notes": "barfoo",
    "priority_id": 3
  }

}

Can anybody suggest what I may be doing wrong or a better alternative?

Many thanks

Environment:
Bitnami Redmine stack on Windows 7

Redmine version                          2.3.0.stable
Ruby version 1.9.3 (i386-mingw32)
Rails version 3.2.13
Environment production
Database adapter Mysql2

Replies (3)

RE: Batch import multiple issues via REST api - Added by Paresh Patel over 11 years ago

hi

http://www.turnkeylinux.org/download?file=turnkey-redmine-12.0-squeeze-x86.iso

above link source download then install your problem solve 100 %

any question then reply me

RE: Batch import multiple issues via REST api - Added by James R over 11 years ago

Hi Paresh,

Can you tell me what the difference is between the turnkey and bitnami redmine stacks?

I have a lot of other stuff already setup in my current version I was hoping to avoid changing it...

thanks

James

RE: Batch import multiple issues via REST api - Added by Burcu Emel about 7 years ago

Hi James,

Were you able to solve this problem?

Regards,

    (1-3/3)