View Issue Details

IDProjectCategoryView StatusLast Update
0017594mantisbtreportspublic2019-09-21 20:32
Reporterpapaya Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Version1.2.16 
Target Version2.23.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.

Activities

papaya

papaya

2014-08-15 09:56

reporter  

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:08

reporter  

centered-by-default.png (32,513 bytes)   
centered-by-default.png (32,513 bytes)   
papaya

papaya

2014-08-25 05:08

reporter  

align-left-mockup.png (31,398 bytes)   
align-left-mockup.png (31,398 bytes)   
papaya

papaya

2014-08-25 05:16

reporter   ~0041121

Last edited: 2014-08-25 11:17

View 3 revisions

@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

View 2 revisions

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)   

Issue History

Date Modified Username Field Change
2014-08-15 09:56 papaya New Issue
2014-08-15 09:56 papaya File Added: bug_relationship_graph_img-Mockup.png
2014-08-15 11:44 atrol Note Added: 0041066
2014-08-15 11:44 atrol Status new => feedback
2014-08-16 04:05 dregad Note Added: 0041067
2014-08-16 04:05 dregad Priority immediate => normal
2014-08-18 03:30 papaya Note Added: 0041070
2014-08-18 03:30 papaya Status feedback => new
2014-08-18 05:08 atrol Note Added: 0041072
2014-08-18 05:40 papaya Note Added: 0041073
2014-08-25 05:08 papaya File Added: centered-by-default.png
2014-08-25 05:08 papaya File Added: align-left-mockup.png
2014-08-25 05:16 papaya Note Added: 0041121
2014-08-25 09:37 papaya Note Edited: 0041121 View Revisions
2014-08-25 11:17 papaya Note Edited: 0041121 View Revisions
2014-08-25 14:52 atrol Note Added: 0041122
2014-08-26 07:07 papaya Note Added: 0041124
2014-11-25 11:04 vboctor Category graphs => reports
2019-09-21 20:12 dregad Assigned To => dregad
2019-09-21 20:12 dregad Status new => assigned
2019-09-21 20:13 dregad Target Version => 2.23.0
2019-09-21 20:17 dregad Note Added: 0062874
2019-09-21 20:21 dregad Summary Output content of title-attributes inside relation graph elements => Display issue Summary inside relation graph nodes
2019-09-21 20:32 dregad Note Added: 0062883
2019-09-21 20:32 dregad File Added: show_summary_1.png
2019-09-21 20:32 dregad File Added: show_summary_2.png
2019-09-21 20:32 dregad Note Edited: 0062883 View Revisions