Using Bookmarklets to Copy Case Fields to a New Case



This article provides the guidelines for copying the Case fields in order to create new cases. A special bookmarklet (a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser) can be used in order to open a new case with most of the fields copied from the case that you are currently viewing. The following steps will explain how to set up the bookmarklet directly from your browser.

Step-By-Step Guide

  1. Create a new bookmark in your bookmarks bar by right-clicking the bookmarks bar and selecting Add page... (Chrome) or right-clicking the bookmarks toolbar and selecting New Bookmark... (Firefox).



  1. Update the URL of the bookmark to the following Javascript code, replacing [your FogBugz URL] with the address of your FogBugz installation.
javascript:a=function(){var bug=((typeof goBug !== 'undefined'))?goBug:fb.cases.current.bug;var m = new Date(); m.setHours(16,30,0,0); var datestring = m.toDateString(); var timestring = m.toLocaleTimeString();open('http://[your FogBugz URL]/default.asp?command=new&pg=pgEditBug&ixProject='+bug.ixProject+'&ixArea='+bug.ixArea+'&ixPersonAssignedTo='+bug.ixPersonAssignedTo+'&sTitle='+bug.sTitle+'&ixBugParent=' + bug.ixBug + '&sDueDate=' + encodeURI(datestring) + '&sDueTime=' + encodeURI(timestring) + '&sEvent=See%20Case%20' + bug.ixBug + '&sCustomerEmail=' + bug.sCustomerEmail);return;};a()


  1. Click Save.
  2. While you are viewing a case in the same window, click the bookmark titled CloneFogBugzCases. It will open a new case in a new window/tab that represents a clone of the currently viewed case.


  1. The new tab will include a message saying "See Case ###" which links back to the original case.

Note: You can remove this from the bookmarklet URL if you prefer.

  1. If you click it with some text selected, that text is put in the body of the new case as well.

Note: If you are using FogBugz Ocelot, you will need to change /default.asp to /f/cases/new after [your FogBugz URL].