Skip to content

blocks / blocked by giving hierarchical graph #46

Open
sisicaivrai opened this Issue Feb 21, 2012 · 21 comments

2 participants

@sisicaivrai

Hello,
I'd like to have a Gantt diagram taking into account the "block / blocked by" relationship.
I've defined versions, time estimations, block / blocked by relations, is it possible to have a diagram with these relations ?
The idea is to see what is more "urgent", because it impacts on other issues.

thanks

@sisicaivrai

actually I can't see any relationship on my Gantt diagram. I have Redmine version 1.3.1
do you have a screenshot on how it should be displayed ?

@kulesa
Owner
@sisicaivrai

Hi Kulesa,
Actually I don't see any dotted arrows, what are the requirements to have this : start / due date ? time estimation ? all issues of the same tracker ?

thanks

@kulesa
Owner
@sisicaivrai

No I don't see any dots at all.
I have both issues on the chart, when I place the mouse on it I have the description saying that A blocks B, but not dots.
But the plugin is installed as I can see the weekend parameters in configuration.

@sisicaivrai

do I need to activate the plugin somewhere ?

@sisicaivrai

If I choose follows relationship, the issue is placed after the one preceding on the chart, but I have no arrows...

@kulesa
Owner
@sisicaivrai

I have Redmine 1.3.1, I tried with both firefox and chrome, I have this in the console warning / error :

[08:35:48.961] GET http://www.xxx.org/redmine/plugin_assets/redmine_better_gantt_chart/javascripts/raphael-min.js [HTTP/1.1 404 Not Found 458ms]
[08:35:48.962] GET http://www.xxx.org/redmine/plugin_assets/redmine_better_gantt_chart/javascripts/raphael.arrow.js [HTTP/1.1 404 Not Found 482ms]
[08:35:49.181] Error in parsing value for 'filter'. Declaration dropped. @ http://www.xxx.org/redmine/stylesheets/application.css?1310384844:529
[08:35:49.454] GET http://www.xxx.org/redmine/plugin_assets/redmine_better_gantt_chart/javascripts/raphael-min.js [HTTP/1.1 404 Not Found 432ms]
[08:35:49.892] GET http://www.xxx.org/redmine/plugin_assets/redmine_better_gantt_chart/javascripts/raphael.arrow.js [HTTP/1.1 404 Not Found 223ms]
[08:35:50.269] window.redrawGanttArrows is not a function @ http://www.xxx.org/redmine/projects/imagx-engineering/issues/gantt:1082

@kulesa
Owner
kulesa commented Feb 22, 2012

Thanks, that's it, it cannot find required javascript. Let me check how it works with Redmine 1.3.1 on my local dev environment, maybe this is a compatibility issue (I tested only with 1.3.stable).

One last question - have you installed the plugin from Github repo or downloaded from Redmine site?

@sisicaivrai

Thanks for looking at it, I did a git clone directly from github.

@sisicaivrai

I have raphael.arrow.js and raphael-min.js in :
/usr/share/redmine/vendor/plugins/redmine_better_gantt_chart/assets/javascripts

@kulesa
Owner
kulesa commented Feb 22, 2012

Got it: #25. It is a known issue, though I completely forgot that I helped to resolve it once ago. The same advice applies:

A quick solution could be to manually create folder public/plugin_assets/redmine_better_gantt_chart/javascripts/ and copy there files from vendor/plugins/redmine_better_gantt_chart/assets/javascripts. But this may not help, and even if it does, it could lead to further errrors when the plugin is updated to a new version, but the javascrtips remain the same.

In general it looks like an Apache configuration problem. Check these threads, maybe you'll find the solution: http://www.redmine.org/boards/1/topics/3417, http://www.redmine.org/boards/2/topics/8904, http://www.ruby-forum.com/topic/196348

Let me know if it helped!

@sisicaivrai

Thanks, I copied the files and now it works (I tried a symbolic link to keep plugin update but it didn't work) !
Is there a way to change how the issues are sorted, because the arrows go through everything.

Is your plugin compatible with this patch ?
http://www.redmine.org/issues/2024

thanks again

@kulesa
Owner
@sisicaivrai

Ok it looks better, still I have some issues with no blocks / blocked by mixed up with other issues.
So maybe adding a condition to sort the non related issues apart may be a good idea ?
The problem is also that if all issues have the same due date, the vertical line is the same for all arrows, so I need to find a way to easily change the start / due dates to see a real flow with arrows clearly visible...

Any idea? ;)

@sisicaivrai

I also have an error in the console :
[10:00:48.324] GET http://www.xxx.org/redmine/plugin_assets/redmine_better_gantt_chart/javascripts/raphael-min.js [HTTP/1.1 200 OK 718ms]
[10:00:48.326] GET http://www.xxx.org/redmine/plugin_assets/redmine_better_gantt_chart/javascripts/raphael.arrow.js [HTTP/1.1 200 OK 689ms]
[10:00:48.766] Error in parsing value for 'filter'. Declaration dropped. @ http://www.xxx.org/redmine/stylesheets/application.css?1310384844:52

@kulesa
Owner
kulesa commented Feb 22, 2012

Re: sorting, I need to think about this. It is not always a good idea to sort the non related issues apart. What about just adding a filter that hides/shows the non related issues?

Re: the same vertical line for all arrows, I can highlight the line and the issue it comes from on mouse over on the related issue. Or something like this. Looks a good idea.

Re: javascript error - is it only with the new sorting?

@sisicaivrai

I don't know if there is a way to sort on related issues, you think about adding a specific checkbox for gantt chart ?
Maybe a good idea.

For the highlight I think it may be also great.

The javascript error : I actually don't know ;)

I think I will do a script to automatically update the due date regarding start date + estimation because now it uses the target due date, which is the same for all.

@kulesa
Owner
kulesa commented Feb 22, 2012

OK, I'll come back on this in few days. Highlight of related issues and filtering by relation types looks doable.

@sisicaivrai

Great!
Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.