Issue with creating issue
I'm trying to create issues with the REST API. And I can do so, but I can't figure out how to set the new issue's assignee. Looking at the XML of GetIssue(), I see an IssueResourcesID element that looks promising, but when I pass a user ID in through it, I get no errors but also no assignee. There's also an IssueResources element that looks a lot like the Components element; in the case of the latter, I was able to do this:
[Components][IssueComponentEN][ComponentID]12[/ComponentID][/IssueComponentEN][/Components]
and it worked great. So I tried this for the assignee:
[IssueResources][IssueResourceEN][IssueResourceID]43[/IssueResourceID][/IssueResourceEN][/IssueResources]
but it produces this error:
object(SimpleXMLElement)#5 (3) {
["Exception"]=>
object(SimpleXMLElement)#4 (8) {
["InnerMessage"]=>
string(53) "Object reference not set to an instance of an object."
["InnerSource"]=>
string(28) "CounterSoft.Gemini.Presenter"
["InnerStack"]=>
string(172) " at CounterSoft.Gemini.Presenter.IssuePresenter.CreatePartialIssue(IssueEN issue)
at CounterSoft.Gemini.Web.Api.IssuesRestHandler.PartialIssueCreate(RequestDetails rd)"
["InnerType"]=>
string(29) "System.NullReferenceException"
["Message"]=>
string(57) "Exception has been thrown by the target of an invocation."
["Source"]=>
string(8) "mscorlib"
["Stack"]=>
string(784) " at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CounterSoft.Gemini.Web.Api.x984df3e201a5cc4a.xd8c6760a50aeba18(RequestDetails x4f7dd955f6bfaf92, MethodInfo x2a154456227d18a2)"
["Type"]=>
string(43) "System.Reflection.TargetInvocationException"
}
["Message"]=>
string(57) "Exception has been thrown by the target of an invocation."
["Type"]=>
string(19) "InternalServerError"
}
Since it's an internal error and not an error message intended for client consumption, I'm inclined to think that I've hit on both the correct method of setting an assignee and on a bug in the service. Am I right in thinking this? Or am I just doing going about this completely wrong? In the latter case, what's the correct way?
Thanks!
bobw
· 1 |
|
Monday, July 13, 2009, 6:46:53 PM |