Creating a SubIssue throwing an exception
Hello, I am trying to create a new subissue and add it to an existing issue, I am using the following code:
var issues = serviceManager.IssuesService.GetFilteredIssues(issuesFilter);
var roomIssue = issues.FirstOrDefault(issue => issue.IssueSummary.Contains("105"));
var newIssue = new CounterSoft.Gemini.Commons.Entity.IssueEN();
newIssue.ProjectID = project.ProjectID;
newIssue.IssueSummary = "Trying to add a new issue to this existing issue";
newIssue.IssueLongDesc = "This will describe a problem.";
newIssue.ReportedBy = 1;
var fromServer = serviceManager.IssuesService.CreatePartialIssue(newIssue);
serviceManager.IssuesService.CreateSubIssue(roomIssue.IssueID, fromServer);
This blows with an exception of "Issue Id does not match saved data Id value: 105."
Any ideas?
Thanks!
matrix4123
· 1 |
|
Tuesday, July 20, 2010, 1:12:43 AM |