Kulgar / jira2redmine

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

Issue is being overwritten in the database #25

Closed Mathurankan closed 7 years ago

Mathurankan commented 7 years ago

The issues imported into database is being overwritten as it has same ID. I am not very familiar with ruby or this script. It seems that all the record for issues have the same id. When the script ends there is only 1 record for "issues".

Mathurankan commented 7 years ago

Basically the "description" was same for all the records and I had to change the query to use "subject" instead of "description".

From:

def retrieve

#  Issue.where("description Like '#{self.jira_marker}%'").first()
#end

To: def retrieve Issue.where('subject Like "#{self.jira_summary}%"').first() end