6

2

I have a number of recurring items that always pop up at regular intervals. How can I create new FogBugz cases using the API on an automatic basis?

flag

1 Answer

6

http://yourfogbugz.com/api.asp?cmd=new&token=361abi3k9g8fffj7j71prf&sTitle=sometitle&sPersonAssignedTo=somename

  • Remember that in urls, spaces have to be encoded as %20. If you enter the above url into Firefox, it will encode everything for you after you hit return.
  • You can use many different arguments in this url. For more arguments, see the xml api docs for the section on editing cases.
  • Now that you have the url you want which creates the new case just right, you need to make a small script the windows task scheduler can run. Put the following code into a file called fbapi.vbs.

    Dim o: Set o = CreateObject("Microsoft.XMLHTTP")
    o.open "POST", "put the url here", False
    o.Send
    Set o = Nothing

  • Finally, create the scheduled task to run the following command cscript.exe c:\<path to>\fbapi.vbs

  • Here's how to create scheduled tasks on XP. Here's how to create a scheduled task on Vista.
link|flag
Excellent answer. – Rich Armstrong Nov 25 2009 at 14:38

Your Answer

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