SaveIssue
Description: Saves the given issue in the account's database (both for new and existing issues).
Parameters: BugTrackingIssue object - the issue you wish to save.
Return Value: BugTrackingIssue object - the saved issue.
Example in Visual Basic .Net
Try
'create an instance of the proxy
class
Dim BTService As New Elementool.BugTrackingWse
'Execute web method for retrieving issue details
Dim Issue As
Elementool.BugTrackingIssue = (BTService.GetIssueByNum(945))
'if issue exist
If Not Issue Is Nothing Then
'Change the first field of the issue which is title
Issue.FieldsArray(0).Value = "This is updated title"
'Save the issue
BTService.SaveIssue(Issue)
MsgBox("Issue was successfully updated")
Else
MsgBox("Issue does not exist")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
Example in C#
try
{
//create an instance of the proxy class
Elementool.BugTrackingWse BTService = new
Elementool.BugTrackingWse();
//Execute web method for retrieving issue details
Elementool.BugTrackingIssue Issue =
(BTService.GetIssueByNum(945));
//if issue exist
if (Issue != null)
{
//Change the first field of the issue
which is title
Issue.FieldsArray(0).Value = "This is
updated title";
//Save the issue
BTService.SaveIssue(Issue);
MessageBox.Show("Issue was
successfully updated");
}
else
{
MessageBox.Show("Issue does not
exist");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}