Project

General

Profile

Projects Tree View Plugin - Version 0.0.1

Added by Chris Peterson almost 16 years ago

This plugin will turn the projects index view into a tree view that can be expanded and collapsed. It propagates the tree view to the project show page's subprojects list.

Install Instructions:

1) Extract projects_tree_view.zip to /path/to/redmine/vendor/plugins/
2) Restart Redmine
3) Enjoy Project Tree Goodness!


Replies (128)

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Babbo Maria over 13 years ago

For the new policy of Redmine i have created a new release at plugin homepage.

http://www.redmine.org/plugins/projectstreeview

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Ivan Cenov over 13 years ago

Babbo Maria wrote:

For the new policy of Redmine i have created a new release at plugin homepage.

http://www.redmine.org/plugins/projectstreeview

Great!
Is it possible to add Expand All/Collapse All links?

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Chris Darts over 13 years ago

Are there any plans for this plugin to work with Redmine 1.1.x?

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Luis Serrano Aranda over 13 years ago

I have a problem with some sub-projects without the plugin I see all sub-projects, but the plugin do not see some. I think it's related to the ID of the parent "parent-id" and "lft". When "lft"is greater than "parent-id" does not show that sub-project. I continue to investigate

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Ivan Cenov over 13 years ago

Hello,

There is a problem with links to time logs after installing projects_tree_view plugin 0.0.11 into Redmine 1.1.2.

The links become

http://path/to/redmine/projectname/timelog/details
http://path/to/redmine/projectname/timelog/report
and they do not work. Instead, 403 You are not authorized to access this page. error is generated.

The original links before installing this plugin are

http://path/to/redmine/projectname/time_entries
http://path/to/redmine/projectname/time_entries/report
and they still work if typed in the address bar.

I compared vendor/plugins/projects_tree_view/app/views/projects/show.rhtml and app/views/projects/show.rhtml and saw that there is a difference in the time log link definitions:

In vendor/plugins/projects_tree_view/app/views/projects/show.rhtml (lines 115-116):

    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |
    <%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %></p>
In app/views/projects/show.rhtml:
    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
    <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p>
I changed lines 115-116 in vendor/plugins/projects_tree_view/app/views/projects/show.rhtml with the two lines from app/views/projects/show.rhtml and the original links restored (and began to work).

So, I propose the maintainer/author of the plugin to include this change in the next version of the plugin.

Ivan

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Ivan Cenov over 13 years ago

Hello,

Archived projects disappear from the tree-view in the Administration panel of the the projects. So if the admin wants to un-archive a project he/she cannot do this. Without this plugin, the project list contains all the projects, including the archived ones.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Ivan Cenov over 13 years ago

Oooops, please ignore above note --- I have forgotten to set 'All' project instead of 'Active' only.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Alex A over 13 years ago

I`d tested plugin with redmine-1.1-stable and it does not work correctly.
I change some bug`s in it and it works fine for me. I upload this file here.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Chris Darts over 13 years ago

Alex A wrote:

I`d tested plugin with redmine-1.1-stable and it does not work correctly.
I change some bug`s in it and it works fine for me. I upload this file here.

After some initial testing with Redmine 1.1.2 stable I found the following errors:

  1. The 'overall activity' link on the project page redirects to the wrong URL and gives a 404 error. It goes to '/projects/activity' instead of just '/activity'
  2. After selecting a project the Spent time links in the sidebar redirect to the wrong URL:
    1. 'Details' goes to '/projects/<project_identifier>/timelog/details' instead of '/projects/<project_identifier>/time_entries
    2. 'Report' goes to '/projects/<project_identifier>/timelog/report' instead of '/projects/<project_identifier>/time_entries/report'

I've attached a working version for 1.1.2 with the above changes.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Luis Serrano Aranda over 13 years ago

The subprojects don't have a correct order (alphabetical)

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Luis Serrano Aranda over 13 years ago

It's possible order all the subprojects inside a project ? The ordenation It's not correct

RE: Projects Tree View Plugin - Version 0.0.1 - Added by R N over 13 years ago

In order to get the deletion of projects working again I had to edit the file:

redmine/vendor/plugins/projects_tree_view/app/views/admin/projects.rhtml

Original line:

 <%= link_to(l(:button_delete), { :controller => 'projects', :action => 'destroy', :id => project }, :class => 'icon icon-del') %>

Fixed line:
<%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %>

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Van Nam Nguyen over 13 years ago

Dear all,

How can i count project for each node? Example the number of child in a parent. I try many way but didnot success.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Pawel Orzechowski over 13 years ago

The plugin 0.0.11 with Redmine 1.0.5 shows all project items expanded and there is no possibility to collapse it in any way.

Any ideas how to fix it?

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Ivan Cenov over 13 years ago

Also, with Redmine 1.2.1: Admin panel, projects. Delete link points to project's overview page, not to delete function.

Good news? - Added by Babbo Maria over 13 years ago

Good news?

It would seem that someone has been able to make a version of this "fundamental Plugin" compatible with version 1.2.1.

Currently I have not tested yet.

It starts again from version 0.0.3 but it should be ok anyway.

You can find it by looking at the fork on github.

https://github.com/wojtha/projects_tree_view.

If you are interested download IT and post your impressions here.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Alex A over 13 years ago

Can you post screenshot here?

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Babbo Maria over 13 years ago

I'm sorry too many sensible data in my office version, it' the same as old image.
In my first startup i have seen that there is much work made on this post that has not been ported. Anyway the plugin do it work but 50% of links are broken or missing. We need to backport a lot of change and correct some links.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Babbo Maria about 13 years ago

This is a start version whith all mod reintroduced tree view is now enabled only in projects all other view are default so the link will never be broken when redmine change his structure.
The only change will be made on projecs view.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Dmit nitkin about 13 years ago

Does this plugin make any changes to Redmine API? It looks so. I'm a developer of a plugin for Visual Studio and here is a description of a problem of parsing JSON from Redmine API when project tree view plugin is installed on Redmine https://sourceforge.net/tracker/?func=detail&aid=3422224&group_id=384362&atid=1598034

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Mischa The Evil about 13 years ago

Dmit nitkin wrote:

Does this plugin make any changes to Redmine API? It looks so. I'm a developer of a plugin for Visual Studio and here is a description of a problem of parsing JSON from Redmine API when project tree view plugin is installed on Redmine https://sourceforge.net/tracker/?func=detail&aid=3422224&group_id=384362&atid=1598034

This actually is already reported as an issue in my initial fork of the plugin. See https://github.com/MischaTheEvil/projects_tree_view/issues/9

My fork of the plugin is currently heavily outdated and others have patched it to keep it running along Redmine updates.
I'll see if I can prepare a new, updated and polished release in a few weeks or so to solve the urge for a stable, maintained version of this plugin. Maybe at that point we can (let others, due to the directory system) change the details on the "official" plugin page (http://www.redmine.org/plugins/projectstreeview) to point to that repo instead.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Babbo Maria about 13 years ago

I have just updated the homepage of plugin. Thanks for you effort.

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Luis Serrano Aranda about 13 years ago

It is possible that the projects are sorted in alphabetical ?

At present the position shown, but you change the project name is always the same

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Luis Serrano Aranda about 13 years ago

If I put inside a subproject the show view of the plugin don't show the tree.

It's possible show the project tree in this view ?

Thanks in advance

RE: Projects Tree View Plugin - Version 0.0.1 - Added by Ivan Cenov about 13 years ago

Luis Serrano Aranda wrote:

If I put inside a subproject the show view of the plugin don't show the tree.

It's possible show the project tree in this view ?

Thanks in advance

I think it is not possible in the current version.

(76-100/128)