# Feature JIM-354 - Handle restricted work log entries

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Target versions | 18.2.0 |
| Sprint |  |
| Backlog bucket | Ready for Planning |
| Votes |  |
| List | RM Jira Migrator |
| Roadmap | 2027 Q1 |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an admin migrating from Jira  
**I want to** ensure that users can only see work logs that they could see in Jira  
**so that** no data is leaked

At the moment, there is no 1:1 mapping in OpenProject for restricting work log visibility to a selected project role (s. <mention class="mention" data-id="84080" data-type="work_package" data-text="#OP-20888" data-display-id="OP-20888">\#OP-20888</mention> ). In addition, Jira project roles don't have a 1:1 equivalent either. In Jira, a project role name is defined globally (e.g. Developers) but the actual members assigned to the role are defined per project. Thus, we will implement an intermedia solution which at least allows users to not leak data (s. <mention class="mention" data-id="83839" data-type="work_package" data-text="#JIM-334" data-display-id="JIM-334">\#JIM-334</mention> for decision).

**Acceptance criteria**

  - Add configuration options how to handle restricted worklogs: fail, public, skip, anonymize
    
      - Fail: Fail the import if if encounters one. This is the default to ensure that users are made aware
    
      - Public: Import as regular work logs, keep all the data
    
      - Skip: Ignore them completely. Drawback: This changes the total amount of work, so not recommened.
    
      - Anonymize: Replace the user  that logged the work with a new user  "Anonymous (Jira Import)" and replace the comment with "This work log comment was restricted in Jira and removed during migration."

  - For fail: 
    
      - The migrator should run a pre-check if restricted work logs exist
    
      - Log an error if a restricted work logs is encountered

  - For skip and anonymize: 
    
      - Store all affected work logs in a file and provide them for download
    
      - Log a warning if a restricted comment is encountered

**Technical notes**

  - Need to define how the pre-check is integrated

  - Need to define how long download is available (only before approval?)

**Out of scope**

  - 
    <br>
