How to display a confirmation message before creating issue?

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
gk1981
Advanced user
Posts: 20
Joined: Wed Sep 24, 2008 8:59 am

How to display a confirmation message before creating issue?

Post by gk1981 »

Hi All,

I have successfully managed to integrate Testlink with Rally for Defect Management. But, I am trying to have a confirmation dailaog box, just like delete function, when I click on the link for Create Bug.

When I click the Yes button, the Bug should be created on the Issue tracker, but when I click No, nothing is done.

How do I do this?

I looked at the following piece of code in gui/templates/execute/inc_exec_show_tc_exec.tpl

Code: Select all

<td align="center">
             <a href="javascript:open_bug_add_window({$tc_old_exec.execution_id})">
                 <img src="{$tlImages.bugMgmt}" title="{$labels.img_title_bug_mgmt}" style="border:none" />
             </a>
         </td>
Function open_bug_add_window in gui/javascript/testlink_library.js:

Code: Select all

function open_bug_add_window(exec_id)
{
	window.open(fRoot+"lib/execute/bugAdd.php?exec_id="+exec_id,"bug_add",
	            "width=510,height=270,resizable=yes,dependent=yes");
}
Looks like I need to include that in open_bug_add_window, or,
create a new function that displays confirmation first and then calls open_bug_add_window.
As I am not well versed with javascript, I would appreciate any help in this.

Thanks and Regards,
GK
Post Reply