tentwentyfour / remaim

Redmine to Maniphest migration utility
MIT License
8 stars 2 forks source link

Journal migration fails #21

Open mylittleshorint opened 7 years ago

mylittleshorint commented 7 years ago

Branch or version of remaim used

commit f19ee18a5fbc172fb7642d2bc86d6334d7fa9d3a
Merge: d3f5f2e 0985c16
Author: David Raison <david@tentwentyfour.lu>
Date:   Sun Jan 15 17:51:19 2017 +0100

    Merge branch 'development'

User's real names in Phabricator are the same as those in Redmine? Yes

Is a "project" of type "group" defined in Phabricator? Yes

Log Migrating issue 40 - "Tst40"... Encountered attribute action with unknown fourth case: a:3:{s:8:"property";s:4:"attr";s:4:"name";s:11:"category_id";s:9:"new_value";N;}PHP Notice: Undefined offset: 3 in /opt/bitnami/apps/remaim/src/Journal.php on line 283

Ticket in JSON format which produced the error {

"issue": {
    "id": 40,
    "project": {
        "id": 40,
        "name": "Tst40"
    },
    "tracker": {
        "id": 5,
        "name": "Default"
    },
    "status": {
        "id": 1,
        "name": "Open"
    },
    "priority": {
        "id": 4,
        "name": "Normal"
    },
    "author": {
        "id": 1,
        "name": "John"
    },
    "assigned_to": {
        "id": 2,
        "name": "Doe"
    },
    "category": {
        "id": 3,
        "name": "PS"
    },
    "fixed_version": {
        "id": 20,
        "name": "Candidate for next release"
    },
    "subject": "$$TestSubject, Test + Test",
    "description": "TestDescription.\r\n\r\nTest 0.00.8 tested = o. g. Werte fehlen.\r\n\r\nTest: Test",
    "done_ratio": 0,
    "custom_fields": [
        {
            "id": 3,
            "name": "MY TEST ID",
            "multiple": true,
            "value": [
                "8 (TestName)"
            ]
        }
    ],
    "created_on": "2017-02-20T11:48:58Z",
    "updated_on": "2017-02-22T09:31:57Z",
    "journals": [
        {
            "id": 50,
            "user": {
                "id": 4,
                "name": "Malcom"
            },
            "notes": "",
            "created_on": "2017-02-21T16:08:51Z",
            "details": [
                {
                    "property": "attr",
                    "name": "category_id",
                    "new_value": "9"
                },
                {
                    "property": "attr",
                    "name": "assigned_to_id",
                    "new_value": "4"
                },
                {
                    "property": "attr",
                    "name": "fixed_version_id",
                    "new_value": "2"
                }
            ]
        },
        {
            "id": 51,
            "user": {
                "id": 3,
                "name": "Sam"
            },
            "notes": "TestNote \"\\\\test\\devel\\Test\\PS\\MyDirectory\\MyNextDir\\\" !",
            "created_on": "2017-02-21T16:30:04Z",
            "details": [
                {
                    "property": "attr",
                    "name": "priority_id",
                    "old_value": "6",
                    "new_value": "4"
                }
            ]
        },
        {
            "id": 52,
            "user": {
                "id": 3,
                "name": "Sam"
            },
            "notes": "@Sam ;: TestNote + Test $$Test testing.",
            "created_on": "2017-02-22T09:31:57Z",
            "details": [
                {
                    "property": "attr",
                    "name": "assigned_to_id",
                    "old_value": "14",
                    "new_value": "7"
                }
            ]
        }
    ]
}

}

Thanks a lot

kwisatz commented 7 years ago

Sorry I didn't get back to you earlier. This should be fixed in release 0.4.0 which is due for tonight or tomorrow morning.

kwisatz commented 7 years ago

Just released 0.4.1. If you're still using this, please let me know if this solves the issue for you.