1

1

I don't want to allow any public access to cases. Can I globally disable the ticketurl that's generated for every case? I don't send it in the auto-response to customers, but I don't want users to be able to put it in an email with the {ticketurl} placeholder in a snippet.

flag

2 Answers

2

Based on a manual removal of sTicket and a subsequent reopening of the case (via the "Reopen" button, not via an incoming email... But I don't think that matters), the sTicket field does not get repopulated if a ticket is reopened.

link|flag
thanks! added to this post: fogbugz.stackexchange.com/questions/3394/… – adambox Jul 7 2010 at 12:05
2

FogBugz 8.2

You can remove external access to a case (i.e. it's public status page) by loading a special URL:

  1. Find the ticketurl for the case you want to make private
  2. Copy the URL and paste in your browser, adding "command=removeExternalAccess" and hit enter.

For example, if case 1234's ticket number is 1234_42umo5hjc1h6vurl and your FogBugz site is http://example.com/fogbugz, go to http://example.com/fogbugz/default.asp?1234_42umo5hjc1h6vurl&command=removeExternalAccess

http://example.com/fogbugz/default.asp?1234_42umo5hjc1h6vurl will no longer allow access to case 1234.

FogBugz 8.1 and earlier

You can't turn off this feature, but you can make existing cases unavailable to non-logged-in users by setting sTicket to '' in the database. This requires direct DB access, so you must have FogBugz installed locally (not On Demand).

UPDATE Bug SET sTicket = '' WHERE ixBug in (list,of,case,numbers);

Update: I believe a plugin could clear the CBug.sTicket string on every case commit that's a new case creation or email event because those are the two times the ticketurl gets created by FogBugz. Get started with plugin development here. I haven't tested this to make sure it clears the ticketurl before the email gets sent, so use at your own risk.

public void BugCommitBefore(CBug bug, BugAction nBugAction, CBugEvent bugevent, bool fPublic)
{
    if ((nBugAction == BugAction.Email || nBugAction == BugAction.Create) &&
        bug.sTicket.Length > 0)
    {
        bug.sTicket = "";
    }
}
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.