1

1

I have an application written in Python and I'd like to redirect errors into FogBugz so I can better-manage bugs introduced in a given push. How do I do this?

flag

2 Answers

1

You can get Python sample code on the FogBugz Extras page under Developer Tools. Use it to create cases via the XML API, which has an option for making a case a BugzScout case.

link|flag
Won't that require external access to the fogbugz automation interface and login credentials? – tolomea Apr 20 2011 at 10:34
The XML API does require a licensed user login, but if you use an administrator's token, you can impersonate any user to create cases and edits. The Bugzscout API is not authenticated, but it does require that you choose what real user the cases show up as, so in both cases, you need a user. – adambox Apr 20 2011 at 12:21
1

Here's how you do it by talking directly to the ScoutSubmit address.

import urllib
import urllib2

url = "http://localhost/FogBUGZ/ScoutSubmit.asp"
args = {
    "ScoutUserName": "FogBUGZ User Name",
    "ScoutProject": "Existing Project Name",
    "ScoutArea": "Existing Area Name",
    "Description": "Description",
    "ForceNewBug": "0",
    "Extra": "extra info",
    "Email": "customer@emailaddress.com",
    "ScoutDefaultMessage": "html Default Message",
    "FriendlyResponse": "1",
}

request = urllib2.Request(url, data=urllib.urlencode(args))
response = urllib2.urlopen(request).read()
print response

Make sure to adjust the various fields to suit your setup.

link|flag

Your Answer

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