# Feature OP-7255 - Facilitate fetching work package activities (e.g. for Cycle Time) 

Project: OpenProject
Status: in specification
URL: https://community.openproject.org/work_packages/OP-7255

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Product Backlog |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_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

By allowing the activity of a set of work packages to be fetched via the API v3 we enable clients to generate reports on e.g. the cycle time of work packages. This API could then also be build upon by the OpenProject front end to display additional graphs, e.g. closed work packages over the last n-days.

### Acceptance criteria

*   API Endpoint for all activities (could be limited to work packages at first but in the end, we should also enable the activities of e.g. wikis)
    *   Filtering on activity attributes (e.g. only activites where a status is changed)
    *   Filtering on the resource the activity is tracked for (e.g. work packages -&gt; Work packages of a certain project)
    *   Grouping and sums/count by various attributes (that way, we can get activities of a certain type by e.g. the day)
    *   Activity details should be in machine readable form (currently it is only a string used for rendering in the activity tab)
