# Bug JIM-312 - Jira migrator crashes on comments and worklogs without an author

Project: Stream Jira to OpenProject data Migrator
Status: closed
URL: https://community.openproject.org/work_packages/JIM-312

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0, 17.9.0 |
| Sprint | Sprint 18.11.-24.11.2026 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Log in as an administrator with permission to run the Jira migrator
    
2.  In the Jira instance to be migrated, have at least one issue carrying a comment whose `author` is absent from the REST payload, or present without a `key` field. Jira omits it for comments left by anonymous users, by apps and integrations, and by accounts that were purged from the instance
    
3.  Go to Administration &gt; Jira migration and run an import for the project containing that issue
    
4.  Let the import proceed to step 8, &quot;Create work packages&quot;
    

A second, independent occurrence of the same defect:

1.  Have an issue with a worklog whose `author` is absent or has no `key`
    
2.  Run the import and let it proceed to the &quot;Create time entries&quot; step
    

### What is the buggy behavior?

The job aborts and the import stops at &quot;Create work packages &gt; Create work packages for &#x27;Foo&#x27;&quot;.

### What is the expected behavior?

1.  The import does not stop and &quot;Deleted User&quot; is used as a placeholder
    

### Logs

on 17.9 this was

```text
NoMethodError: undefined method 'id' for nil
app/workers/import/jira_create_project_work_packages_job.rb:344:in 'Import::JiraCreateProjectWorkPackagesJob#create_member'
```

### Environment information

**OpenProject installation type**

*   [x] All

**OpenProject version**

v17.9 as reported. Also present on `dev` (18.0).

**Browser**

*   [x] All

**Operating System**

*   [x] All

**Language**

*   [x] All
