プロジェクト

全般

プロフィール

Vote #74521

未完了

Dynamic query fields

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

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

0%

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

説明

All custom fields are set in 'static' manner - we have to enter a value.
But often we need to calculate a value basing on other fileds/attributes values.

Example 1 (issues). I have 3 custom fields for my issues: A, B, C that represents parts of expression (Ax2 + Bx + C = 0).
If I want to see Y1 and Y2 such as:
Y1 = (B + SQRT (B*B - 4A*C)) / 2A
Y1 = (B - SQRT (B*B - 4A*C)) / 2A
I have to export all issues to CSV, then import CSV into Excel, then add formulas to make the calculation. It would be great if I could add specific columns in my custom query that will calculate value basing on custom expression each time I refresh the window.

Example 2 (version). I have 1 custom field A for each issue. I want to see sum of all A for a particular version.
Again, I have to export all my data to an external application and make calculation there.


journals

Now, I use database triggers to work around this issue: my database records are updated automatically each time custom field are updated. But it has cons: if I re-install / upgrade redmine I would re-design my triggers. Also, sometimes redmine 'misses' changes - they are not shown in auto emails. And other disadvantages are.

--------------------------------------------------------------------------------
Example 3 (versions + issues). I have 1 global coefficient for each version. I need to multiply an attribute from issue to this global coefficient. Again, I have to export into CSV, then to Excel or implement a trigger in database to show required value.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,6717,Custom list field with dynamic list content

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

  • カテゴリCustom fields_14 にセット

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

いいね!0
いいね!0