Page 1 of 1

Editing submitted date

Posted: 13 Dec 2010, 18:14
by jajr
I've just starting to use Mantis and am in the process of entering some issues that I have accumulated over time by email.

I would like to enter the actual date the issue was sent to me, rather than the date I put them into Mantis, so I would like to know if there is a way to edit the submitted date of a bug.

Thanks for any help.

Jim

Re: Editing submitted date

Posted: 13 Dec 2010, 19:06
by atrol
It's not possible with standard installation of MantisBT
you could
a) change the source code of MantisBT and make the standard field editable
b) write a plugin
c) add an additional custom date field "Date of customer submit"

Re: Editing submitted date

Posted: 14 Dec 2010, 02:23
by squarebox
i had the same issue when importing from our previous system. In teh end, i just opened up the DB and edited the submitted/created date directly. Which is definately not supported, so back up your db before you do it, but it was pretty straight forward.

Re: Editing submitted date

Posted: 01 Feb 2012, 11:16
by MCBurner
Hi.

I was wondering if there is a "change ticket creation date" in newer versions of mantis as this request is older than a year now. Or a plugin that provides such a feature?
From what I know the date_submitted date for each ticket is only used in one table (mantis_bug_table) and there are no dependencies to other tables for this value. So as long as you change it very carefully within the db table itself - it shouldn't be a big problem in terms of database integrity.

I tried to find a code or a plugin but wasn't successfull....

Re: Editing submitted date

Posted: 02 Feb 2012, 08:00
by atrol
MCBurner wrote: I was wondering if there is a "change ticket creation date" in newer versions of mantis as this request is older than a year now.
AFAIK there is no change since that time.
MCBurner wrote: it shouldn't be a big problem in terms of database integrity.
I agree.

Re: Editing submitted date

Posted: 31 Mar 2012, 14:57
by tmsayleb
you can solve this very easily by editing the file ../mantis/core/date_api.php and adding the value of -2 to the current year date function as follows:

function print_year_range_option_list( $p_year = 0, $p_start = 0, $p_end = 0) {
$t_current = date( "Y" )-2 ;
$t_forward_years = config_get( 'forward_year_count' ) ;

You may change put -1 or -2 or -3 to go back the number you like.
For the forward_year_count parameter, you can set it in config_defaults_inc.php file and change it from the default value (4) to any positive number.

Regards :D