# Feature JIM-335 - Consider visibility settings of comments when migrating data from Jira

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

## 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 comments 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 comment visibility to a selected project role (s. <mention class="mention" data-id="84077" data-type="work_package" data-text="#OP-20886" data-display-id="OP-20886">\#OP-20886</mention> ). Internal comments do exist in OpenProject, but they are visible to all users with the permissions. 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 comments:
    
      - Fail: Fail the import if it encounters one. This is the default to ensure that users are made aware
    
      - Public: Import as regular comments, keep all the data
    
      - Skip: Ignore them completely.
    
      - Anonymize: Replace the user  that logged the work with a new user  "Anonymous (Jira Import)" and replace the comment with "This comment was restricted in Jira and removed during migration."

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

  - For skip and anonymize:
    
      - Store all affected comments 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>
