View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011365 | mantisbt | plug-ins | public | 2010-01-08 10:16 | 2020-03-15 15:23 |
| Reporter | MarkusSchulte | Assigned To | dregad | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.0rc2 | ||||
| Target Version | 2.24.0 | Fixed in Version | 2.24.0 | ||
| Summary | 0011365: New Event: EVENT_MENU_ISSUE_RELATIONSHIP | ||||
| Description | Hi, for time being i am developing a Mantis-Plugin, which is primarily concerned with bug relation. So i have downloaded Mantis 1.2.0 rc2 and added a new Event Necessary Code is attached. Well, this is almost C+P from "function print_summary_menu" (core/html_api.php). Unfortunately i have not found a better way to integrate this new event. Though, i think this additional event is useful, so i would be happy, if someone here could integrate it. | ||||
| Additional Information | core/relationship_api.php, behind line 820 (right behind the code block "if( ON == config_get( 'relationship_graph_enable' ) ) {[...]}" | ||||
| Tags | patch | ||||
| Attached Files | Mantis Diff.txt (856 bytes)
core/events_inc.php, added
'EVENT_MENU_ISSUE_RELATIONSHIP' => EVENT_TYPE_DEFAULT,
core/relationship_api.php, added line 821.ff
// Plugins menu items
$t_event_menu_options = event_signal( 'EVENT_MENU_ISSUE_RELATIONSHIP' );
$t_menu_options = array();
foreach( $t_event_menu_options as $t_plugin => $t_plugin_menu_options ) {
foreach( $t_plugin_menu_options as $t_callback => $t_callback_menu_options ) {
if( is_array( $t_callback_menu_options ) ) {
$t_menu_options = array_merge( $t_menu_options, $t_callback_menu_options );
} else {
$t_menu_options[] = $t_callback_menu_options;
}
}
}
foreach( $t_menu_options as $t_menu_name => $t_menu_item ) {
echo '<span class="small">';
print_bracket_link($t_menu_item, $t_menu_name );
echo '</span>';
}
right after if( ON == config_get( 'relationship_graph_enable' ) ) { [...] }
| ||||
|
Just forgot to mention core/events_inc.php:
has local become |
|
|
I'm trying to work out what the purpose of this new event would be. Are you effectively trying to add custom relationship types via a plugin hook (as opposed to adding relationship types via custom_relationships_inc.php)? |
|
|
Hi, i want to visualize relationships between Issues, similar to the Relation/Dependency Graph. To make myself clear, i have added Screenshots of current Development-State:
|
|
|
I think I understand now. So you need the event to add the [ GANTT ] link? Does it serve any other purpose? The reason I am asking about the need for this event is that we'll need to document it :) Regards, David |
|
|
Yes, i need the event to add the link. |
|
|
Is that plugin available in some git repository? Looks cool! |
|
|
@am-gtz: Thank you! This Plugin is far from stable/final, unfortunately I dont have enough time to complete it. Well, I will publish the plugin on mantisforge when I'm done. |
|
|
You can also publish the current version ... maybe somebody finds it cool enough to help you. |
|
|
I would like to add "Gantt Chart" feature on Mantis 1.1.8, which is considered very useful tool in my research team. |
|
|
Hi, i am sorry for my later response; i just do not find the time to develop this plugin anymore. Well, here is my source-code, maybe someone will develop it in the future. In "Mantis Diff.txt" you find the necessary changes to Mantis (added Plugin-Point EVENT_MENU_ISSUE_RELATIONSHIP) In GANTT.tar.gz is the source of the plugin, Screenshot are shown above. |
|
|
Hi, It looks so nice. |
|
|
There is another Gantt Chart plugin: https://github.com/mantisbt-plugins/GanttChart. I'm not sure how much overlap there is between that and the one MarkusSchulte uploaded here many years ago, but I just thought I'd mention it in case someone is interested, |
|
|
MantisBT: master 89b126e1 2019-09-21 13:44 Details Diff |
New EVENT_MENU_ISSUE_RELATIONSHIP event Allows plugins to add new links to the menu under the Relationships section in the View Issue Details page. Fixes 0011365 |
Affected Issues 0011365 |
|
| mod - bug_view_inc.php | Diff File | ||
| mod - core/events_inc.php | Diff File | ||
| mod - docbook/Developers_Guide/en-US/Events_Reference_Output.xml | Diff File | ||