Kulgar / jira2redmine

Script for import from JIRA to redmine
31 stars 27 forks source link

NoMethodError: undefined method `save!' for nil:NilClass #15

Open jijeesh opened 9 years ago

jijeesh commented 9 years ago

rake jira_migration:do_all_migrations RAILS_ENV="production" rake aborted! NoMethodError: undefined method save!' for nil:NilClass /var/www/html/redmine/lib/tasks/migrate_jira.rake:925:inblock (3 levels) in <top (required)>' /var/www/html/redmine/lib/tasks/migrate_jira.rake:920:in each' /var/www/html/redmine/lib/tasks/migrate_jira.rake:920:inblock (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in

' Tasks: TOP => jira_migration:do_all_migrations => jira_migration:migrate_issue_types (See full trace by running task with --trace)

afsharm commented 9 years ago

I checked the trace, for me it was for a bad map migration file. Open 'map_jira_to_redmine.yml' and set a proper issue type for SubTask. In my case I used 'Feature' and this solved my problem.

angeldanielboscan commented 8 years ago

This happened to me too. I had a fresh Redmine install, no trackers or issue status.

I assumed that the script created the issue status and trackers, but you have to set them first in your Redmine implementation before importing. When the script doesn't found one of them it just gives this error.

nikkolp640 commented 8 years ago

Hi, I'm getting the following error when running the rake. (Using redmine 3.30)

rake jira_migration:do_all_migrations RAILS_ENV="production". screen shot 10-04-16 at 07 27 pm rake jira_migration:do_all_migrations RAILS_ENV="production" --trace screen shot 10-04-16 at 07 28 pm I have already added the following to the map_jira_to_redmine.yml. (already added trackers, statuses and priorities in redmine) But not any other details.


types: Bug: Bug New Feature: New Feature Task: Task Improvement: Improvement Sub-task: Sub-task Epic: Epic status: Done: Done To Do: To Do Closed: Closed Resolved: Resolved In Development: In Development PRE REVIEW: PRE REVIEW Reopened: Reopened Testing: Testing In Code Review: In Code Review IN DEV ANALYSIS: IN DEV ANALYSIS In Progress: In Progress In Review: In Review priorities: Medium: Medium Highest: Highest High: High Low: Low

Any idea to fix this / what i'm doing wrong / Format of map_jira_to_redmine.yml ? What should i put into redmine before starting this ? Any complete sample for map_jira_to_redmine.yml would be much apprecieated.