Skip to content

Conversation

@individual-it
Copy link
Member

This allows the template to filter the timeentries by workpackages.
It is useful when limiting the export to a particular tmetric project (#22). If in that case we also want to use AllTimeEntriesFromOpenProject in the template, only the entries should be shown that were returned by the tmertric report

In the template all workpackages can be collected while looping through the report items e.g. by {{- $allWorkpackages = (append $allWorkpackages $reportItem.WorkpackageId | uniq) }}

and then to generate the list of time entries from Openproject that list of workpackages can be given to AllTimeEntriesFromOpenProject
e.g. {{- range $j,$timeEntry := AllTimeEntriesFromOpenProject $user $allWorkpackages }}

@individual-it individual-it merged commit e65909a into main Sep 26, 2025
2 checks passed
@phil-davis phil-davis deleted the limitreportbywp branch September 29, 2025 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants