0

I am using an Android device to edit Fogbugz cases via the XML API. However, so far I have only been able to edit case statuses using cmd=reactivate and cmd=resolve. For example, I have added a custom status, "Resolved (In Response)." However this Http Request: http://[fogbugz instance here]/api.asp?cmd=resolve&ixBug=244&sStatus="Resolved (In Response)"&token=[token here] only edits the bug to the default status, "Resolved." I realize I could change this to be the default status, but I need to create multiple "Active" and "Resolved" statuses, so I have to figure this out. Thanks for the help!

Edit: The category and statuses were created in the Workflow Plugin.

Edit2: Using ixStatus instead of sStatus eventually worked, but I still have no way of changing a status from the default active to my custom active status. Any ideas?

flag

2 Answers

1

I was able to edit a case to set it to a custom active status:

api.asp?token=[removed]&cmd=edit&ixBug=88&ixStatus=26&sEvent=active
api.asp?token=[removed]&cmd=edit&ixBug=88&sStatus=HyperActive&sEvent=active

And resolve with a custom resolved status:

api.asp?token=[removed]&cmd=resolve&ixBug=88&ixStatus=27&sEvent=resolve
api.asp?token=[removed]&cmd=resolve&ixBug=88&sStatus=ShutDOWN&sEvent=resolve
link|flag
Is there any way to change the status from one active status to another. For example, have the case default to the status: active, and change to the status: active (in response)? The edit function doesn't seem to have any access to the status. – Yinwa Jul 29 2010 at 19:50
The first example above is editing an active case to change its status (Active) to another active status (HyperActive). Make sure the status you're changing it to applies to the category of the case. – adambox Jul 30 2010 at 13:36
Gah, tried it again and it worked. Somehow I managed to miss that cmd=resolvee isn't a valid command. Sorry for the wasted time on a typo, when the answer was just as simple as it should have been. Thanks – Yinwa Jul 30 2010 at 14:24
0

It's better to use ixStatus parameter with numeric ID of your status, e.g. ...&ixStatus=33

link|flag
I tried this, but the same result is occuring. Using cmd=resolve, I changed ixStatus to 29, the "Resolved (In Response)" value, but once again the status of the case is just changed to "Resolved (Completed)." The category and custom statuses were both created via the workflow plugin, but I don't feel like that should make a difference. – Yinwa Jul 29 2010 at 15:08

Your Answer

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