# Feature JIM-377 - Provide an option to skip confidential issues

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

## 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 issues that they could see in Jira  
**so that** no data is leaked

In Jira, an issue can have a security level from the project's issue security scheme. Only users, groups or roles granted that level can see the issue, including its comments, attachments and work logs. Subtasks inherit their parent's security level. OpenProject doesn't support security levels yet, and the planned feature (<mention class="mention" data-id="73304" data-type="work_package" data-text="#AUTOWORK-215" data-display-id="AUTOWORK-215">\#AUTOWORK-215</mention>) is likely not to come within Q1 2027. So we'll implement an intermediate solution that at least prevents data leaks.

**Acceptance criteria**

  - Add a configuration option for how to handle issues with a security level: fail, public, skip
    
      - Fail: fail the import if it encounters one. This is the default, to ensure that users are made aware.
    
      - Public: import as regular work packages, visible to everyone in the project, keeping all the data.
    
      - Skip: don't import them, including their comments, attachments, work logs and subtasks. Drawback: the data is lost once Jira is shut down, and their logged time is missing from project totals.

  - The setting is configured once in the import configuration and applies to every import run.

  - For fail:
    
      - The migrator runs a pre-check for secured issues after fetching and before creating anything.
    
      - If any exist, the import stops, nothing is created, and the affected issues are logged at error level with their security level.
    
      - After changing the setting, the import can be retried without fetching everything from Jira again.

  - For public:
    
      - Store the security level's name in a read-only custom field "Jira security level," so it can be reapplied once OpenProject supports security levels. Only create the field if at least one secured issue is imported, and only enable it in the affected projects and types.
    
      - Restricted comments and work logs in secured issues follow their own settings (<mention class="mention" data-id="83846" data-type="work_package" data-text="#JIM-335" data-display-id="JIM-335">\#JIM-335</mention> , <mention class="mention" data-id="84079" data-type="work_package" data-text="#JIM-354" data-display-id="JIM-354">\#JIM-354</mention> ).
    
      - Log the number of secured issues imported as public per project.

  - For skip:
    
      - Subtasks of skipped issues are skipped too.
    
      - Issues whose parent was skipped are imported without a parent.
    
      - Relations to skipped issues are dropped.
    
      - Log a warning for each skipped issue with its issue key and total logged hours, and for each dropped parent and relation.
    
      - The warning includes a JQL query that finds the skipped issues in Jira, so they can be exported from Jira before it's shut down. The help text recommends doing so.

**Technical notes**

  - Need to define how the pre-check is integrated

**Out of scope**

  - **Restricted subproject:** import secured issues into a subproject per security level (for example "FIN – Confidential"), with only the people who can see that level in Jira as members. This would keep all data without exposing it. Membership could be derived from Jira's list of users who can view an issue (`/rest/api/2/user/viewissue/search`), with one call per level.

  - **Export file of content that wasn't migrated,** shared with <mention class="mention" data-id="83846" data-type="work_package" data-text="#JIM-335" data-display-id="JIM-335">\#JIM-335</mention> and <mention class="mention" data-id="84079" data-type="work_package" data-text="#JIM-354" data-display-id="JIM-354">\#JIM-354</mention>  since it would be basically a complete issue export incl. attachments

  - **Not importing users who are only referenced by skipped issues.** They're currently still imported.

  - **Migrating security levels** to OpenProject's own security level feature, once it's available.
