[SOLVED] Mantis TL doesn't recognize status of reopened bugs

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
skupienkarol7
TestLink user
Posts: 9
Joined: Mon Feb 11, 2013 8:03 pm

[SOLVED] Mantis TL doesn't recognize status of reopened bugs

Post by skupienkarol7 »

Hi, I have a problem when I want to see all my test cases in test reports section. When any testcase has assigned a bug from mantis and if this bug has status 'reopened' (I'm using mantis 1.2.8 ) I cannot see the status of this bug. Only reopened, the rest status are good. Maybe the reason is because in new mantis (1.2.14) as I checked, we don't have reopened status? Is new TestLink integrated properly only with 1.2.14 mantis version or I'm doing something wrong? Thanks in advance for your replies.
skupienkarol7
TestLink user
Posts: 9
Joined: Mon Feb 11, 2013 8:03 pm

Re: TestLink doesn't recognize status of reopened bugs

Post by skupienkarol7 »

Ok, I found the problem. I write, maybe will be helpful for somebody with similar issue.
As i thought new testlink is integrated properly with statuses from new mantis (1.2.14). So I found configuration file ('lib/issuetrackerintegration/mantissoapInterface.class.php') and I added into this file entries which will be responsible for my old statuses. Now it looks like this:

Code: Select all

private $status_color = array('new'          => '#ffa0a0', # red,
                                  'feedback'     => '#ff50a8', # purple
                                  'acknowledged' => '#ffd850', # orange
                                  'confirmed'    => '#ffffb0', # yellow
                                  'assigned'     => '#c8c8ff', # blue
                                  'resolved'     => '#cceedd', # buish-green
                                  'closed'       => '#e8e8e8', # light gray
								  'reopened'     => '#ff5050', #intensive red
								  'client feedback'  => '#ffd850', #orange
								  'in progress'      => '#99ff99', #greenish
								  'on hold'        => '#c5c5fc'); #light blue

If you are connecting with mantis throught database interface, not soap, yu have to edit 'lib/issuetrackerintegration/mantisdbInterface.class.php'. Thats all :)
Oh, I almost forgot. Colours you can get from 'config-inc.php' from old mantis (1.2.8 ).

EDIT: 25-02
You have to also change your locale/en_GB/string.txt (or similar) to eliminate LOCALIZE... string. Add proper string to each status and voila :)
Post Reply