0

(Found some few semi-related questions, but none of them really answered this one.)

Background:
We're relying on our users to report bugs through a bug reporter application that uses the FogBugz API and is attaching log files, stacktraces etc. to the users' bug reports.
We are now planning to invite our beta testers into FogBugz as Community Users, but can't have them creating new cases with the web interface. So, we want to disable that feature for community users, forcing them to keep using our custom bug reporter tool.

Question:
How can we prevent Community Users from creating new cases using the web interface?

flag

1 Answer

3

Since your effectively still allowing Community Users to submit cases (via your custom bug reporting tool), you can't actually strictly prevent them from filing cases via the web UI.

You can, however, use a BugMonkey customization like the following to point them in the right direction:

name:        Prevent anonymous/community users from filing cases via the web UI
description: Hides/redirects the public case submission page to point to our custom bug reporting tool
author:      Dane Bertram
version:     1.0.0.0
minApi:      1.0

js: 
    var sReportingAppUrl = 'http://your_custom_case_submission_app.com';

    // if you'd like the "Enter a New Case" link on the login/community user homepage to *redirect* use this line:
    $('a[href="default.asp?pg=pgPublicEdit"]').attr('href', sReportingAppUrl);

    // if you'd just like to remove the "Enter a New Case" link altogether, uncomment the following line:
    // $('a[href="default.asp?pg=pgPublicEdit"]').parent('li').remove();

    // if you'd like to also remove the "New Case" navigation menu link, uncomment the following line
    //$('a[href="default.asp?pg=pgPublicEdit"]').remove();

    // if they've somehow made it to the anonymous/community user case submission page redirect them
    if(window.location.href.indexOf('pg=pgPublicEdit') > 0){
        window.location.href = sReportingAppUrl;
    }
css: 
link|flag
Cool. The redirect works like a dream! (it loads the page though, so the community user sees the form, but that's fine I guess). However, the commented line that is supposed to remove the link, doesn't seem to work. Investigating... – Nicolaj Schweitz Mar 11 2011 at 14:20
Now, I found that we weren't talking about the same link. The commented line does remove the link in the body. What I was referring to was the link in the navigation menu. I added the following line below to remove that : $('a[href="default.asp?pg=pgPublicEdit"]').remove(); – Nicolaj Schweitz Mar 11 2011 at 14:23
Ah...yeah, I'd missed that one. I've updated my answer to include that. Thanks! – db Mar 11 2011 at 14:34

Your Answer

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