Page 1 of 1
Nothing anymore in the roadmap
Posted: 24 Aug 2010, 11:48
by joujoukinder
Hi everyone,
Can you help me ? In mantis, I am using versions and I had the roadmap until today. I don't know what I have done, but I have no roadmap anymore !
On the bugs, the target versions are always set.
Best regards.
Matteo
Re: Nothing anymore in the roadmap
Posted: 24 Aug 2010, 13:13
by atrol
Check whether someone changed the version to "released"
Re: Nothing anymore in the roadmap
Posted: 24 Aug 2010, 14:42
by joujoukinder
No, the version is not released. I have 2 versions that are not released and none is shown on the roadmap...
Re: Nothing anymore in the roadmap
Posted: 24 Aug 2010, 15:27
by atrol
Have you set $g_roadmap_view_threshold in your config_inc.php ?
Re: Nothing anymore in the roadmap
Posted: 24 Aug 2010, 15:40
by joujoukinder
I just did. No changes...
What I added :
Code: Select all
$g_roadmap_view_threshold = ADMINISTRATOR;
I have restarted all the services, (apache, mySql...)
What is wrong ?

Re: Nothing anymore in the roadmap
Posted: 24 Aug 2010, 20:09
by atrol
If you have no $g_roadmap_view_threshold in your config_inc.php it's OK because standard setting is VIEWER
But this seems not to be related to your problem
You could enable database tracing to get some more information what is happening
Re: Nothing anymore in the roadmap
Posted: 25 Aug 2010, 14:52
by joujoukinder
OK. I found what seems to be wrong :
I have many subproject levels in mantis. The main level is "MyApplication" and then some levels are within this one :
- MyApplication
- Feature1
- Feature2
- Feature 2.1
- Feature 2.2
I versioned the "MyApplication" project. But when I put a bug into mantis, I chose the sublevel that the bug is related to. Because in my firm, each feature is a project.
In the roadmap_page.php, this is what I found :
Code: Select all
$t_version_rows = array_reverse( version_get_all_rows( $t_project_id ) );
I can't see my bugs, because there is no inheritance from the parent level "MyApplication" and the sublevels. The version_get_all_rows( $t_project_id ) returns only the versions ids that are set to "MyApplication", and another query get the bugs, but only for the versions of "MyApplication". But in my case, I want to see all the bugs of "MyApplication" including all the sublevels.
I am wrong ?
Best regards. Matteo.
Re: Nothing anymore in the roadmap
Posted: 26 Aug 2010, 22:34
by johnsterdotcom
Subproject inheritance is something that's lacking a great deal in Mantis from what I can see.
I overcame the roadmapping issue with the following hack in roadmap_page.php :
Code: Select all
/*
$query = "SELECT sbt.*, $t_relation_table.source_bug_id, dbt.target_version as parent_version FROM $t_bug_table AS sbt
LEFT JOIN $t_relation_table ON sbt.id=$t_relation_table.destination_bug_id AND $t_relation_table.relationship_type=2
LEFT JOIN $t_bug_table AS dbt ON dbt.id=$t_relation_table.source_bug_id
WHERE sbt.project_id=" . db_param() . " AND sbt.target_version=" . db_param() . " ORDER BY sbt.status ASC, sbt.last_updated DESC";
*/
$query = "SELECT sbt.*, $t_relation_table.source_bug_id, dbt.target_version as parent_version FROM $t_bug_table AS sbt
LEFT JOIN $t_relation_table ON sbt.id=$t_relation_table.destination_bug_id AND $t_relation_table.relationship_type=2
LEFT JOIN $t_bug_table AS dbt ON dbt.id=$t_relation_table.source_bug_id
WHERE sbt.target_version=" . db_param() . " ORDER BY sbt.status ASC, sbt.last_updated DESC";
My next challenge (personally), is to get the custom field usage to cascade parent to child. My experience with Mantis is limited (< 1 month), but I think you'll there's a fair number of obstacles for you if sub-projects and hierarchies are your thing (as they are mine). Be prepared for some challenges.
Re: Nothing anymore in the roadmap
Posted: 28 Aug 2010, 12:48
by atrol
Re: Nothing anymore in the roadmap
Posted: 28 Aug 2010, 18:32
by joujoukinder
Ok, I see...
So I have to correct the code on my own and what fir the issue to be corrected on the next version right ?
Re: Nothing anymore in the roadmap
Posted: 29 Aug 2010, 13:29
by atrol
joujoukinder wrote:
So I have to correct the code on my own and what fir the issue to be corrected on the next version right ?
Yes