View Issue Details

IDProjectCategoryView StatusLast Update
0017594mantisbtreportspublic2020-03-15 15:23
Reporterpapaya Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.16 
Target Version2.24.0Fixed in Version2.24.0 
Summary0017594: Display issue Summary inside relation graph nodes
Description

The usage of the graph could be drastically enhanced by adding the content of the item's title-attribute to the output. This way the graph get more context, instead of just displaying a bunch of ticket numbers.

The whole thing could look like something in the attached mockup image "bug_relationship_graph_img-Mockup.png".

• Can this be done by our own administrators in our mantis installation? If yes, what would be the necessary code?

• If this feature would be added to mantis by mantis' devteam, the possibility to enter a value for the number of characters would be helpful.

Any reactions are welcome ;-) Kind regards. Roger

TagsNo tags attached.
Attached Files
centered-by-default.png (32,513 bytes)   
centered-by-default.png (32,513 bytes)   
align-left-mockup.png (31,398 bytes)   
align-left-mockup.png (31,398 bytes)   

Activities

atrol

atrol

2014-08-15 11:44

developer   ~0041066

Are you aware that the issue summary is displayed as a tooltip when moving the mouse on the number?

dregad

dregad

2014-08-16 04:05

developer   ~0041067

Definitely not a high priority issue.

papaya

papaya

2014-08-18 03:30

reporter   ~0041070

Yes, the issue summary (title-attribute) is displayed upon hover. But hovering allows only the displaying of one (1) issue summary. Still it remains a collection of numbers without direct information about their unique issue.

Certainly no high priority, but the graph display would be drastically enhanced.

Any help/hint of how to accomplish this is appreciated. Thanks.

atrol

atrol

2014-08-18 05:08

developer   ~0041072

Add the following line
$t_node_attributes['label'] = $p_bug_id . "\n" . mb_strimwidth( $t_summary, 0, 20, "..." );
before line
$p_graph->add_node( $p_bug_id, $t_node_attributes );
in file core/relationship_graph_api.php function relgraph_add_bug_to_graph around line 483

papaya

papaya

2014-08-18 05:40

reporter   ~0041073

Thank you very much, we'll try it and get back with feedback. ;-)

papaya

papaya

2014-08-25 05:16

reporter   ~0041121

Last edited: 2014-08-25 11:17

@atrol: The code you provided in 0017594:0041072 works like a charm :-) Thank you so far.

The current result by default looks like in the screenshot "centered": http://www.mantisbt.org/bugs/file_download.php?file_id=5210&type=bug. This is already a huge improvement, compared to the default output of the graph (i.e. nothing but issue numbers)

For the finishing touches I would like to have it output as mocked in the screenshot "algin-left-mockup": http://www.mantisbt.org/bugs/file_download.php?file_id=5211&type=bug :

  • text-align left in issue containers
  • alignment left of all issue containers of the same hirarchy level.

Can these options be added to the code line? I'd really appreciate, if you can provide an example code line (complete).

That would be the final round, I promise ;-) . Thank you. Roger

atrol

atrol

2014-08-25 14:52

developer   ~0041122

I tried a bit, but didn't succeed in changing the label alignment.
Maybe there is a bug in the underlying component that generates the graph [1]

Sorry, I don't have time for further investigation.

[1] http://graphviz.org

papaya

papaya

2014-08-26 07:07

reporter   ~0041124

Ok, Thank you very much. Maybe someone else finds the time to make these last cosmetic adjustments.

Cheers.Roger

dregad

dregad

2019-09-21 20:17

developer   ~0062874

PR https://github.com/mantisbt/mantisbt/pull/1567

dregad

dregad

2019-09-21 20:32

developer   ~0062883

Last edited: 2019-09-21 20:32

Proposed fix in the PR: a new button Show / Hide Summary allows the user to optionally show the issue Summary, as shown in attached screenshots. Note that the text is truncated to 30 chars (arbitrary value), to avoid the boxes to become too wide.

show_summary_1.png (22,145 bytes)   
show_summary_1.png (22,145 bytes)   
show_summary_2.png (29,108 bytes)   
show_summary_2.png (29,108 bytes)   

Related Changesets

MantisBT: master ec616fd3

2019-09-21 15:32

dregad


Details Diff
Relationship Graphs allow display of Issue Summary

A new Show/Hide Summary button lets the user choose whether they want to
see just the Issue ID, or also the Summary. In that case, the text is
truncated to an arbitrary 30 characters, to avoid the node boxes being
too wide.

Fixes 0017594
Affected Issues
0017594
mod - bug_relationship_graph.php Diff File
mod - bug_relationship_graph_img.php Diff File
mod - core/relationship_graph_api.php Diff File
mod - lang/strings_english.txt Diff File

MantisBT: master 6568294a

2019-09-21 15:49

dregad


Details Diff
Adjust relationship graph to avoid nodes overlap

When the labels include the issue's Summary, they become much bigger
causing the graph's nodes to overlap.

Tweaking the graph's attributes avoids this, at the expense of a
slightly larger image.

Fixes 0017594
Affected Issues
0017594
mod - core/relationship_graph_api.php Diff File