# Feature COSTS-161 - Global restrictions/limits for time entries

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-161

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.8.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| COSTS-162 | Bug | No error message on time logging if user logs more than 'max number of hours a day' allows | closed |  | 17.8.0 |  | Modules and project features / Time tracking |
| COSTS-163 | Bug | No error message on time logging if user logs more than their working hours | rejected | Klaus Zanders | 17.8.0 |  | Modules and project features / Time tracking |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Time tracking |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan | Enterprise / Professional (PRO) |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/xRFTkBJYxQJxwAf9fd3oM1/Log-time?node-id=3212-10696 |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

**As** an administrator  
**I want to** put restrictions on time entries  
**so that** we produce valid time entries we can sync with external systems

**Acceptance criteria**

  - In Administration -\> Time & Costs -\> Time, we can set up restrictions for time entries that are evaluated when a time entry is being saved
    
      - Limit hours a single time entry can have
    
      - Limit how many hours per day can be logged in total
    
      - Limit that users can only log the amount of hours they have defined for their working day
    
      - Limit that users can not log time on their personal or global non working days
    
      - Limit that time entries cannot be added/edited for an ended month

**Technical notes**

  - All validations are disabled per default to keep current behavior

**Permissions and visibility considerations**

  - Set up by a global admin, validations run when creating a time entry

**Translation considerations**

  - *Key terms and phrases in the key languages* 

**Out of scope**

  - Project specific overrides are part of <mention class="mention" data-id="61297" data-type="work_package" data-text="##COSTS-67" data-display-id="COSTS-67">\#\#COSTS-67</mention>, this ticket just implements global settings

*Set the* **To be informed/consulted teams** *field to include all teams necessary to be informed of the changes.*
