# Bug OP-14937 - Progress: Custom action to set progress to 100% broken with new progress calculation mode

Project: OpenProject
Status: on hold
URL: https://community.openproject.org/work_packages/OP-14937

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Custom actions |
| Target versions | 14.1.0 |
| Observed in versions | 14.0.0 |
| Sprint | 14.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Aaron Contreras |
| Accountable | Aaron Contreras |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

The problem as described by a user:

> Error due to new progress measurement for "Custom actions" in work packages:
> 
> o For "Actions" there is no option to automatically set Remaining work to 0. Previously, we had the progress set to 100%. This does not work now with the effort-based measurement. Therefore, the request to automatically achieve 100% progress by an automated change to "Remaining effort 0".
> 
> o Unfortunately, our "Complete work package" action does not currently work due to this restriction.

1.  Pre-14.0, have a custom action that sets the work package % complete to 100%

2.  Click on the button after upgrade to 14.0

### What is the buggy behavior?

  - The custom action does not work because % complete is no longer manually editable.

### What is the expected behavior?

The expected behaviour is to be discussed:

  - We can either achieve the same *effect:*
    
      - In Work-based mode, update Work and Remaining work such that % complete is 100%
    
      - In Status-based mode, automatically pick a status that has a % complete of 100%? 
        
          - *Note: This might be complicated; which status? What if there are multiple? Should we limit this to work-based mode? Presumably in status-based mode, such a button wouldn't be required since one can change the status with two clicks.*

### Environment information

**OpenProject version**

OpenProject 14.0
