How to display a confirmation message before creating issue?

Moderators: Amaradana, TurboPT, TL Developers

How to display a confirmation message before creating issue?

Postby gk1981 » Sat Aug 24, 2013 2:56 am

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" />

Function open_bug_add_window in gui/javascript/testlink_library.js:

Code: Select all
function open_bug_add_window(exec_id)

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,
Advanced user
Posts: 20
Joined: Wed Sep 24, 2008 8:59 am

Return to Issue Tracker Integration

Who is online

Users browsing this forum: No registered users and 1 guest