# Bug AGILE-517 - Epic progress widget disappears when the Epic type has a different name

Project: Stream agile
Status: confirmed
URL: https://community.openproject.org/work_packages/AGILE-517

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Module | Modules and project features / Backlogs |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint | Sprint 14 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Tobias Dillmann |
| Accountable |  |
| Product manager |  |
| Developers | Tobias Dillmann |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

Preconditions:

*   Enterprise edition, so the sprint report pro widgets are available
    
*   A user allowed to view sprints in project A
    
*   Project A has a sprint with a start and end date
    
*   The sprint contains a work package whose parent is of the seeded type &quot;Epic
    

How to reproduce:

1.  Log in as an administrator.
    
2.  Go to _Administration → Work packages → Types_.
    
3.  Rename the type &quot;Epic&quot; to &quot;Initiative&quot; and save.
    
4.  Go to project A and open the sprint report for that sprint.
    

**Alternative trigger with no renaming**: set up a fresh instance seeded in a language other than English or German, for example in Spanish with `OPENPROJECT_SEED_LOCALE=es`, so the type is created as &quot;Épico&quot;. Then do step 4.

### What is the buggy behavior?

*   The epic progress widget is missing from the sprint report. It shows no empty state and no explanation.
    
*   The widget only recognizes a type named exactly &quot;Epic&quot;. This affects:
    
    *   instances where an admin renamed the type
        
    *   instances seeded in a language that translates the name, e.g. &quot;Épico&quot; (es), &quot;Èpica&quot; (ca), &quot;エピック&quot; (ja)
        
*   The reverse also happens: any other type named &quot;Epic&quot;, such as a newly created one _after_ the original was renamed, is treated as the epic type.
    

### What is the expected behavior?

1.  The epic progress widget keeps working when the Epic type is renamed
    
2.  The widget works on instances seeded in another language
    
3.  Which type counts as an epic doesn&#x27;t depend on the type&#x27;s name, for example through an &quot;Epic type&quot; setting in the (global administrations) backlogs settings, like the former version-based-sprint story and task type settings.
    

###
