Page 1 of 1

Summary Report using customized Resolution, Status values

Posted: 20 Feb 2006, 21:32
by drm
Hi,

Before I start, just wanted to say that this tool is quite impressive!

In our install, we've customized things such as severity, resolution, status, etc. and everything seems to work well.

However, the summary_api.php is using constants such as TWEAK, MINOR, etc for severity, RESOLVED and CLOSED for status, etc.

Well, my CLOSED has a different numeric value then the default, and RESOLVED has been replaced with COMPLETE, etc.

What do I need to do? I didn't realized that TWEAK, etc. were being used in this fashion.

Mantis 1.0.0rc2

Thanks

Posted: 21 Feb 2006, 01:15
by Narcissus
Although it's going to be tough to do, it's generally suggested that you never change any of the 'default' values. If you want to put in extra values, you slot them in somewhere between the '10' intervals.

Is it just me, or is anyone else reminded of old-school BASIC programming when they see those numbers? :)

Also, be careful with what you change. Again, you should probably not change the constants for the values: you should just change the string values.

Depending on how much you've used Mantis already, it might be best to try and get that all in order first. A few smart SQL queries would sort everything out I daresay.

If I were you, I'd take a copy of the database and hack away at it: go back to the default source code and work out the queries you would need to straighten everything out. Then when you're certain, you can just take your real Mantis offline for a few minutes, copy over the necessary files then run a dozen or so prewritten SQL queries.

Again, it really depends on exactly what changes you've made. Your ultimate goal for things like that are "nothing changed, lots added".

I'm sorry I can't be any more helpful than that, but hopefully it gives you a couple of ideas at least?

Lincoln.