0

I'd like to archive dozens of attachments from fogbugz to a windows files share? I'm using FogBugz 6.0. Is there any way to do this?

flag

1 Answer

1

Not from specifically inside FogBugz (aside from manually, of course). However, if you're using 6.1.13 or later you should be able to mock something up using the XML API.

When you capture the BugEvent data from a case, there will be an attachment section that looks like so:

<rgAttachments>
<attachment>
<sFileName>Test Word.doc</sFileName> -- name of the attached file
<sURL>default.asp?pg=pgDownload&amp;pgType=pgAttachment&amp;ixBugEvent=756&amp;sPart=2&amp;sTicket=&amp;sFileName=Test%20Word.doc</sURL> -- url to hit to get the contents of the attached file (add on token=<yourtoken>)
</attachment>
</rgAttachments>

If an attachment exists with a filename, grab the sURL field, add on token=YOURTOKEN and fetch it using your favorite method (a browser, maybe wget for Windows if you have a lot of them, etc.).

Depending on how many dozens and your proficiency with XML API interactions, manually might be faster. But this will be far cooler, so make sure to take that into account.

If you need more help, you can always contact us!

link|flag

Your Answer

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