プロジェクト

全般

プロフィール

Vote #78977

完了

Show selected columns in gantt chart

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

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

0%

予定工数:
category_id:
34
version_id:
127
issue_org_id:
27672
author_id:
259873
assigned_to_id:
332
comments:
24
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I would like to select and show the necessary columns like issues/index.

!{width: 70%; border:1px solid #ccc}gantt_plan.png!


journals

+1
--------------------------------------------------------------------------------
In the current Gantt chart, you can see information on the issue by using tooltips.
However, I would like to see that information without having to move the cursor.

I tried to write code to realize this feature.
attachment:0001-Show-selected-columns-on-gantt.patch increases the number of columns of the Gantt chart based on the column set to Query like the issues/index.
attachment:0002-Add-switch-the-display-for-selected-column.patch adds the ability to turn column display on or off (default is off).

!{width: 70%; border:1px solid #ccc}gantt.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This is a very interesting patch.

But I found that selected columns cannot be saved in a custom query. The behavior is inconsistent with issues list.
--------------------------------------------------------------------------------
Thank you for reviewing, Go MAEDA.

Go MAEDA wrote:
> This is a very interesting patch.
>
> But I found that selected columns cannot be saved in a custom query. The behavior is inconsistent with issues list.

I think that the problem can be solved by the attached attachment:0003-Fix-changeable-items-on-the-queries-form.patch.
When saving the custom query from the Gantt chart, it was not possible to change the selected column, so we made it changeable.
--------------------------------------------------------------------------------
Hello,

Could I know the current status of this new feature?
We want to show assignee and category on gantt chart and also group by this column.

Is this feature in progress?

Best regards,
Xiaofei Zheng
--------------------------------------------------------------------------------
I fixed the patch.
* Compatible the latest trunk. ( r17625 )
* I put together three patch series into one.
--------------------------------------------------------------------------------
how to run the patch in windows, thank you before

--------------------------------------------------------------------------------
Iwan Yudhistira wrote:
> how to run the patch in windows, thank you before

You should be able to apply the patch in the following way.

# Change into your Redmine directory (the one with app, test, and config folders)
# Download the patch file and place it in the same directory
# Run patch -p1 < PATCH_NAME.patch
# Check the messages for any errors.

Some errors might occur because there are changes to the same areas of code. If you are familiar with merging code, you can try to merge the changes.
Maintenance is difficult, so applying the patch is not recommended.
If patches can not be applied in this way, please ask for help in the "forum":http://www.redmine.org/projects/redmine/boards/2 .
--------------------------------------------------------------------------------
Compatible the latest trunk. ( r18080 )
--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> Compatible the latest trunk. ( r18080 )

Thank you for updating the patch. Unfortunately, the patch cannot be applied to the trunk after r18089. Sorry for bothering you but could you update the patch again?
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Mizuki ISHIKAWA wrote:
> > Compatible the latest trunk. ( r18080 )
>
> Thank you for updating the patch. Unfortunately, the patch cannot be applied to the trunk after r18089. Sorry for bothering you but could you update the patch again?

I attached the updated patch.
--------------------------------------------------------------------------------
I changed to make span.query-columns disabled if draw_selected_columns is not checked.
--------------------------------------------------------------------------------
I think it is better to add @:tracker@ to @UNAVAILABLE_COLUMNS@ constant in @lib/redmine/helpers/gantt.rb@ because also tracker names are shown in the subject column. What do you think?

<pre><code class="ruby">
UNAVAILABLE_COLUMNS = [:id, :subject, :tracker]
</code></pre>

!{width: 529px; border: 1px solid #ccc;}.duplicate-tracker@2x.png!
--------------------------------------------------------------------------------
Go MAEDA wrote:
> I think it is better to add @:tracker@ to @UNAVAILABLE_COLUMNS@ constant in @lib/redmine/helpers/gantt.rb@ because also tracker names are shown in the subject column. What do you think?

I think that it is fine.
--------------------------------------------------------------------------------
Committed the patch. Thank you for the great improvement.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I noticed that there is a place where the layout breaks down due to r18171.
I have attached a patch to fix the layout.

Targets of fix:

!{width: 100px; border: 1px solid #ccc}ScreenShot-2019-05-17-9.27.26.png!

!{width: 300px; border: 1px solid #ccc}ScreenShot-2019-05-17-9.28.27.png!
--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> I noticed that there is a place where the layout breaks down due to r18171.
> I have attached a patch to fix the layout.

I have committed the fix in r18172. Thanks.
--------------------------------------------------------------------------------

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

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

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

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


related_issues

relates,Closed,26409,Show assignee on gantt
relates,Closed,32019,Remove unnecessary scroll indicator from Gantt page
relates,Closed,33082,Links in the last column in gantt are unclickable
relates,Closed,33724,Selected gantt columns are not displayed with MS Edge Legacy

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

  • カテゴリGantt_34 にセット
  • 対象バージョン4.1.0_127 にセット

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

いいね!0
いいね!0