Customize the JIRA Bug Title created from TestLink

Moderators: Amaradana, TurboPT, TL Developers

Customize the JIRA Bug Title created from TestLink

Postby abrjib0 » Tue Feb 19, 2013 2:18 am

Hi,
I have checked all over Forum but couldn't find an answer to my question.

I am using Testlink 1.9.5 installed with BitNami Stack and also integrated it with JIRA. I could successfully create bugs with a click from TestLink. Two issues I am facing.
1. The title of the Bug has some unwanted information . For eg: a Bug title is created as below.
NT-2473 : [Open] : /Cinte/Initial Test Suite/CT--2:Preparing VM2 - Executed ON (ISO FORMAT): 2013-02-17 19:35:16

I don't need the information in bold in the Title of the bug. I tried commenting off the code in jirasoapInterface.class.php as below.

Code: Select all
function buildSummaryHTMLString($issue)
    {
      $summary = $issue->summary;
        /**$strDueDate = $this->helperParseDate($issue->duedate);
        if( !is_null($strDueDate) )
        {
           $summary .= "<b> [$strDueDate] </b> ";
        }**/
        return $summary;

But the result is same as earlier.
In fact I would like to customize the entire title before it is saved and triggered email notifications. Could someone please guide me with correct steps?

2. Whenever a Bug is created from Testlink the 'Reported by' field in JIRA always get populated with the user name value stored in the Issue tracker management config. Instead, I would like to see the name of the user who executed the Test in Testlink appeared in JIRA against the "Reported By' field. Is it possible? If yes, could someone please help to configure it?

Many thanks
Jibsss...
New to TL and finding it GREAT! :-)
abrjib0
TestLink user
 
Posts: 8
Joined: Thu Jan 31, 2013 7:42 pm

Re: Customize the JIRA Bug Title created from TestLink

Postby thomasdahlin » Tue Apr 16, 2013 8:26 am

Hi,

I have also been looking for a way to customise the title of bugs created using the "Create Issue" link (right now I'm about to remove the "Create Issue" link to avoid adding cases which will look "strange") and also set the reported by to the logged in user.

Looking forward to some feedback!

Thank you for a great tool!


Side note
One nice feature regarding "reported by vs logged in user" might be to add additional user information:
BugTracker username
BugTracker password


/Thomas
thomasdahlin
TestLink user
 
Posts: 3
Joined: Sat Apr 13, 2013 6:58 am

Re: Customize the JIRA Bug Title created from TestLink

Postby rtneu » Thu Apr 18, 2013 7:49 am

Hi,

change

Code: Select all
  $rs = $itsObj->addIssue($auditSign . ' - ' . sprintf(lang_get('execution_ts_iso'),$exec['execution_ts']),$signature); 

to

Code: Select all
  $rs = $itsObj->addIssue($auditSign,$signature);

in /lib/execute/bugAdd.php

gruß,
rené
rtneu
TestLink user
 
Posts: 1
Joined: Tue Jun 15, 2010 11:53 am

Re: Customize the JIRA Bug Title created from TestLink

Postby abrjib0 » Thu Apr 18, 2013 8:22 am

Million thanks Dear. It has fixed the ISO Format thing.

Any support with other two issues would also be highly appreciated.

1. Modifying the Bug Title manually before it gets saved/ Created.
2. Seeting the 'Reporter' field with the name of the person logged in to or executed the Test case.

Thanking you in advance.
Abrjib0
New to TL and finding it GREAT! :-)
abrjib0
TestLink user
 
Posts: 8
Joined: Thu Jan 31, 2013 7:42 pm


Return to Jira



Who is online

Users browsing this forum: No registered users and 1 guest