Create Issue Partial ignoring issue type field
A routine I wrote a year or two back to create issues with Create Issue Partial recently started failing to set the issue type. It uses the IssueTypeID element with a value that's a valid type ID for the project (and which can be set in the UI); however, Gemini always saves with the default type value instead.
Is this functionality just broken (maybe 4.0 problem?), has something changed that's not documented, or am I simply going crazy and have been doing it wrong all along?
As an example, here's the XML for a request I tried a few minutes ago:
<IssueEN>
<ProjectID>42</ProjectID>
<IssueSummary>Release task: NT 2011-04-07 SR</IssueSummary>
<IssueLongDesc>Release task for version <b>NT 2011-04-07 SR</b></IssueLongDesc>
<ReportedBy>36</ReportedBy>
<IssueTypeID>14</IssueTypeID>
<IssueResolution>1</IssueResolution>
<Components><IssueComponentEN><ComponentID>607</ComponentID></IssueComponentEN></Components>
<IssuePriority>7</IssuePriority>
<IssueSeverity>6</IssueSeverity>
<IssueResources><IssueResourceEN><UserID>25</UserID></IssueResourceEN></IssueResources>
</IssueEN>
Gem created the issue just fine, but it set the issue type to 11 (the project default) and returned the same in the response. And again, 14 is valid for the project: I can go to the new issue in the UI and set it myself.
Bob W.
· 1 |
|
Monday, April 4, 2011, 10:35:04 PM |