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>
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");
}
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