var milestoneId = '';
var labels = getLabels(mantisIssue);
var author = getUserByMantisUsername(mantisIssue.Reporter);
+ var created = mantisIssue.Created.replace(" ", "T") + "Z";
log_progress("Importing: #" + issueId + " - " + title + " ...");
assignee_id: assignee && assignee.gl_id,
milestone_id: milestoneId,
labels: labels,
+ created_at: created,
sudo: gitlabSudo,
private_token: gitlabAdminPrivateToken
};
} else {
// insert
console.log("inserting: " + data.title + " (Issueid: " + issueId + ")");
+ data.iid = issueId;
+ return insertAndCloseIssue(issueId, data, isClosed(mantisIssue));
+/*
return insertSkippedIssues(issueId-1)
.then(function() {
return insertAndCloseIssue(issueId, data, isClosed(mantisIssue));
});
+*/
}
});
}
description += "\n\n" + value.split("$$$$").join("\n\n")
}
+ if (value = row.Attachments) {
+ description += "\n\n" + value.split("$$$$").join("\n\n")
+ }
+
description = description.replace(/\\n/g, "\n");
description = description.replace(/\\t/g, " ");
description = description.replace(/``/g, '"');