question:how to define/customize the existing status options

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
torsten.fleischmann
Posts: 10
Joined: 29 Jan 2007, 10:23

question:how to define/customize the existing status options

Post by torsten.fleischmann »

Hello all,

i tried to customize the existing status options and add a new one too like shown in the manual (http://www.mantisbt.org/manual/manual.c ... values.php).

-> Would someone please be so kind and update the manual??!



My problem is that it doesn't work in all cases.
by choosing the options "confirmed, rejected + test" an email istn't send. can anybody tell me why? i'm going crazy :) since days.

is it possible to delete the "resolved" messages + dialogues?


another problem is that every email is sent two times...does anybody know why??


here is my configuration:



config_inc.php
-------------------------

<?php
# Used to link to manual for User Documentation.
$g_manual_url = '';

# --- captcha image ---------------
# use captcha image to validate subscription it requires GD library installed
$g_signup_use_captcha = OFF;

#############################
# Mantis Email Settings
#############################

# --- email variables -------------
$g_administrator_email = 'NO_SPAM';
$g_webmaster_email = 'NO_SPAM'';

# the 'From: ' field in emails
$g_from_email = 'NO_SPAM'';

# the return address for bounced mail
$g_return_path_email = 'NO_SPAM'
# Only allow and send email to addresses in the given domain
# For example:
# $g_limit_email_domain = 'users.sourceforge.net';
$g_limit_email_domain = '123.de';

# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;

# This option allows you to use a remote SMTP host. Must use the phpMailer script
# Name of smtp host, needed for phpMailer, taken from php.ini
$g_smtp_host = '195.227.56.*';

# Specify whether e-mails should be sent with the category set or not. This is tested
# with Microsoft Outlook. More testing for this feature + other formats will be added
# in the future.
# OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category)
$g_email_set_category = EMAIL_CATEGORY_PROJECT_CATEGORY;

#############################
# Mantis Version String
#############################

# --- version variables -----------
$g_show_version = OFF;

################################
# Mantis Language Settings
################################

# list the choices that the users are allowed to choose
$g_language_choices_arr = array(
'english'
);



###############################
# Mantis Display Settings
###############################

# --- sitewide variables ----------
$g_window_title = 'BUG'; # browser window title

# --- advanced views --------------
# --- show extra menu bar with all available projects ---
$g_show_project_menu_bar = ON;

# --- Show a legend with percentage of bug status
# --- x% of all bugs are new, y% of all bugs are assigned and so on.
# --- If set to ON it will printed below the status colour legend.
$g_status_percentage_legend = ON;

# -- show users with their real name or not
$g_show_realname = ON;

# -- sorting for names in dropdown lists. If turned on, "Jane Doe" will be sorted with the "D"s
$g_sort_by_last_name = ON;

############################
# Mantis Time Settings
############################

# time to delay between page redirects (in seconds)
$g_wait_time = 0;

############################
# Mantis Date Settings
############################

# --- date format settings --------
# date format strings (default is 'US' formatting)
# go to http://www.php.net/manual/en/function.date.php
# for detailed instructions on date formatting
$g_short_date_format = 'd-m-y';
$g_normal_date_format = 'd-m-y H:i';
$g_complete_date_format = 'd-m-y H:i T';

##################################
# Mantis Default Preferences
##################################

# --- account pref defaults -------
$g_default_redirect_delay = 0; # in seconds


###################################
# Mantis Sponsorship Settings
###################################

# Currency used for all sponsorships.
$g_sponsorship_currency = '';


###################################
# Mantis File Upload Settings
###################################

# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# If you want to allow file uploads, you must also make sure that they are
# enabled in php. You may need to add 'file_uploads = TRUE' to your php.ini
#
# See also: $g_upload_project_file_threshold, $g_upload_bug_file_threshold,
# $g_allow_reporter_upload

# Maximum file size that can be uploaded
# Also check your PHP settings (default is usually 2MBs)
$g_max_file_size = 10000000; # 10 MB

# Files that are allowed or not allowed. Separate items by commas.
# eg. 'php,html,java,exe,pl'
# if $g_allowed_files is filled in NO other file types will be allowed.
# $g_disallowed_files takes precedence over $g_allowed_files
$g_allowed_files = '';
$g_disallowed_files = 'php,html,java,exe,pl';


############################
# Bug Attachments Settings
############################

# Specifies the maximum size below which an attachment is previewed in the bug
# view pages. To disable this feature, set max size to 0.
# This feature applies to: bmp, png, gif, jpg
$g_preview_attachments_inline_max_size = 1600 * 1600;


###############################
# Mantis Cookie Variables
###############################

# --- cookie prefix ---------------
# set this to a unique identifier. No spaces.
$g_cookie_prefix = 'BUG';



###########################
# Debugging
###########################

# --- Timer ----------------------
# Time page loads. Shows at the bottom of the page.
$g_show_timer = ON;


##########################################

# Status to assign to a bug when submitted
$g_bug_submit_status = NEW_;

# Status to assign to the bug when assigned
$g_bug_assigned_status = ASSIGNED;

# Status to assign to the bug when reopened
$g_bug_reopen_status = NEW_;

# Resolution to assign to the bug when reopened
$g_bug_reopen_resolution = REOPENED;

$g_bug_readonly_status_threshold = CLOSED;
$g_bug_resolved_status_threshold = UNDER_WORK_IT;
$g_auto_set_status_to_assigned = ON; #standard = ON


$g_status_enum_string =
'10:new,
20:assigned,
30:confirmed,
40:rejected,
50:under work IT,
60:test,
80:question to reporter,
90:closed';

$g_status_colors = array( 'new' => '#ffa0a0', # red,
'assigned' => '#ff50a8', # purple
'confirmed' => '#ffd850', # orange
'rejected' => '#ffffb0', # yellow
'under work IT' => '#c8c8ff', # blue
'test' => '#000080', # dark blue
'question to reporter' => '#cceedd', # buish-green
'closed' => '#e8e8e8'); # light gray

?>





custom_contant_inc.php
-----------------------------

<?php

define ( 'NEW', 10 );
define ( 'ASSIGNED', 20 );
define ( 'CONFIRMED', 30 );
define ( 'REJECTED', 40 );
define ( 'UNDER_WORK_IT', 50 );
define ( 'TEST', 60 );
define ( 'QUESTION_TO_REPORTER', 80 );
define ( 'CLOSED', 90 );

?>



custom_string_inc.php
----------------------------
<?php

$s_status_enum_string =
'10:new,
20:assigned,
30:confirmed,
40:rejected,
50:under work IT,
60:test,
80:question to reporter,
90:closed';

# Status 10: New
$s_email_notification_title_for_status_bug_new = 'The following issue is now in status NEW';
$s_new_bug_button = 'New Issue';
$s_new_bug_title = 'New Issue';

# Status 20: Assigned
$s_email_notification_title_for_status_bug_assigned = 'The following issue has been ASSIGNED';
$s_assigned_bug_button = 'Assign Issue';
$s_assigned_bug_title = 'Assign Issue';

# Status 30: Confirmed
$s_email_notification_title_for_status_bug_confirmed = 'The following issue has been CONFIRMED';
$s_confirmed_bug_button = 'Confirm Issue';
$s_confirmed_bug_title = 'Confirm Issue';

# Status 40: Rejected
$s_email_notification_title_for_status_bug_rejected = 'The following issue has been REJECTED';
$s_rejected_bug_button = 'Reject Issue';
$s_rejected_bug_title = 'Reject Issue';

# Status 50: Under work IT
$s_email_notification_title_for_status_bug_under_work_it = 'The following issue is now in status UNDER WORK IT';
$s_under_work_IT_bug_button = 'Under work IT Issue';
$s_under_work_IT_bug_title = 'Under work IT Issue';

# Status 60: Test
$s_email_notification_title_for_status_bug_test = 'The following issue is now in status TEST';
$s_test_bug_button = 'Test Issue';
$s_test_bug_title = 'Test Issue';

# Status 80: Question to Reporter
$s_email_notification_title_for_status_bug_question_to_reporter = 'The following issue is now in status QUESTION TO REPORTER';
$s_question_to_reporter_bug_button = 'Question to Reporter Issue';
$s_question_to_reporter_bug_title = 'Question to Reporter Issue';

# Status 90: Closed
$s_email_notification_title_for_status_bug_closed = 'The following issue has been CLOSED';
$s_closed_bug_button = 'Close Issue';
$s_closed_bug_title = 'Close Issue';

?>




E-Mail Configuration:


Image
Last edited by torsten.fleischmann on 09 Feb 2007, 09:41, edited 1 time in total.
torsten.fleischmann
Posts: 10
Joined: 29 Jan 2007, 10:23

Post by torsten.fleischmann »

ok, i've found the error myself.

i had also to change the email preferences of the users by editing the config_inc.php and change the following options:



# --- account pref defaults -------
$g_default_email_on_new = ON;
$g_default_email_on_assigned = ON;
$g_default_email_on_feedback = ON;
$g_default_email_on_resolved = OFF; #Standard = ON
$g_default_email_on_closed = ON;
$g_default_email_on_reopened = ON;
$g_default_email_on_bugnote = ON;
$g_default_email_on_status = 1; # Standard = 0
$g_default_email_on_priority = 1; # Standard = 0
$g_default_email_on_new_minimum_severity = OFF; # 'any'
$g_default_email_on_assigned_minimum_severity = OFF; # 'any'
$g_default_email_on_feedback_minimum_severity = OFF; # 'any'
$g_default_email_on_resolved_minimum_severity = OFF; # 'any'
$g_default_email_on_closed_minimum_severity = OFF; # 'any'
$g_default_email_on_reopened_minimum_severity = OFF; # 'any'
$g_default_email_on_bugnote_minimum_severity = OFF; # 'any'
$g_default_email_on_status_minimum_severity = OFF; # 'any'
$g_default_email_on_priority_minimum_severity = OFF; # @@@ Unused

The default user preferences with the above settings:
Image

The reason for the problem of always getting two emails is also grounded here. i got always one changing the status and one if the status is also assigned/feedback/resolved/closed.


maybe this could help some other people.
Post Reply