プロジェクト

全般

プロフィール

Vote #80229

未完了

Issue/TimeEntry API does not report root_id

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
31864
author_id:
411127
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I would expect, that the Issues API exposes all fields, which I can find in the corresponding tables when accessing the database directly.

For my current project I am missing the root_id field, which I require to build a report which indents child issues.

Use case:
I want to make a report about all Tickets, that have been worked on during a time period.
Currently my approach would be:

Get all TimeEntrys with Spent_on in my timeframe

Get all Issues for those TimeEntrys

Truncate all Issues where issue_id <> root_id (can't be done currently, because information is not provided via API)

For all the root issues then again grab all children and build a tree

This by far isn't ideal request count wise, but everything else would require to have the root_issue_id information also on TimeEntrys.

If TimeEntrys would also provide root_id of the issue, then I could simply:

Get all TimeEntrys with Spent_on between my timeframe

Concat all root_ids to a comma separated string and retrieve all root issues in one request

recursively grab the children, if existing, and build the tree

An even better approach might be to extend the Api for Issues to Include TimeEntrys and vice versa.
That way one would be very flexible in making reports, which depend on time_spent during periods.

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0