View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010384 | mantisbt | roadmap | public | 2009-04-23 06:21 | 2009-06-23 12:08 |
| Reporter | ruslan | Assigned To | dhx | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | duplicate | ||
| Summary | 0010384: Roadmap can/should show priority symbol for issues. | ||||
| Description | Right now ROADMAP show items sorted by priority, this is good.
But I think will be better to show priority symbol itself like this happens in VIEW ISSUES list
You see idea? I think easy to implement, but will show EXPLICITLY to developers that 5 issues from 25 are REALLY high priority and he should try resolve them in first turn. | ||||
| Tags | No tags attached. | ||||
| Attached Files | custom_functions_inc.php (1,314 bytes)
<?php
function custom_function_override_roadmap_print_issue( $p_issue_id, $p_issue_level = 0 ) {
static $t_status;
$t_bug = bug_get( $p_issue_id );
if( bug_is_resolved( $p_issue_id ) ) {
$t_strike_start = '<strike>';
$t_strike_end = '</strike>';
} else {
$t_strike_start = $t_strike_end = '';
}
echo $t_bug->priority;
if( ON == config_get( 'show_priority_text' ) ) {
print_formatted_priority_string( $t_bug->status, $t_bug->priority );
} else {
print_status_icon( $t_bug->priority );
}
if( $t_bug->category_id ) {
$t_category_name = category_get_name( $t_bug->category_id );
} else {
$t_category_name = '';
}
$t_category = is_blank( $t_category_name ) ? '' : '<b>[' . $t_category_name . ']</b> ';
echo str_pad( '', $p_issue_level * 6, ' ' ), '- ', $t_strike_start, string_get_bug_view_link( $p_issue_id ), ': ', $t_category, string_display_line_links( $t_bug->summary );
if( $t_bug->handler_id != 0 ) {
echo ' (', prepare_user_name( $t_bug->handler_id ), ')';
}
if( !isset( $t_status[$t_bug->status] ) ) {
$t_status[$t_bug->status] = get_enum_element( 'status', $t_bug->status );
}
echo ' - ', $t_status[$t_bug->status], $t_strike_end, '.<br />';
} Issue10384.patch (1,334 bytes)
From 6e8fc9f053f3e3eb206388b71724a8ac0e6724eb Mon Sep 17 00:00:00 2001
From: Kirill Krasnov <krasnovforum@gmail.com>
Date: Mon, 27 Apr 2009 14:59:26 +0300
Subject: [PATCH] Show priority icon in roadmap page
Issue 10384
Signed-off-by: Kirill Krasnov <krasnovforum@gmail.com>
---
core/custom_function_api.php | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/core/custom_function_api.php b/core/custom_function_api.php
index fb42b02..6d804df 100644
--- a/core/custom_function_api.php
+++ b/core/custom_function_api.php
@@ -33,6 +33,8 @@ require_once( $t_core_dir . 'prepare_api.php' );
*/
require_once( $t_core_dir . 'columns_api.php' );
+require_once( $t_core_dir . 'icon_api.php' );
+
# ## Custom Function API ###
# Checks the provided bug and determines whether it should be included in the changelog
# or not.
@@ -87,6 +89,12 @@ function custom_function_default_roadmap_print_issue( $p_issue_id, $p_issue_leve
$t_strike_start = $t_strike_end = '';
}
+ if( ON == config_get( 'show_priority_text' ) ) {
+ print_formatted_priority_string( $t_bug->status, $t_bug->priority );
+ } else {
+ print_status_icon( $t_bug->priority );
+ }
+
if( $t_bug->category_id ) {
$t_category_name = category_get_name( $t_bug->category_id );
} else {
--
1.6.2.2.1669.g7eaf8
| ||||
| duplicate of | 0008949 | acknowledged | Roadmap should show priority |
|
What version of MantisBT? |
|
|
I am using 1.1.6 right now. but why you asking? I see that 1.2 Roadmap still do not have such feature |
|
|
Try use this file custom_functions_inc.php |
|
|
Upload patch file for merge in dev-branch |
|
|
Thanks for the path Kirill, I'm looking into it now. This bug is a duplicate of 0008949 so please use that thread instead of discussion on showing priorities on the roadmap. |
|