GetIssueByNum
Description: Returns the issue with the specified number.
Parameters: Integer - the number of the issue you wish to view.
Return Value: BugTrackingIssue object.
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
'Show the first field of the issue which is title
MsgBox("Title:" & Issue.FieldsArray(0).Value)
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)
{
//Show the first field of the issue
which is title
MessageBox.Show("Title:" +
Issue.FieldsArray[0].Value);
}
else
{
MessageBox.Show("Issue does not
exist");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}