C# Class Telerik.TestStudio.Jira.BugTracking.JiraComm

A utility class for communicating with a JIRA server using the REST API. See https://docs.atlassian.com/jira/REST/latest/ for the full JIRA REST API.
Datei anzeigen Open project: TestStudio/JiraPlugin Class Usage Examples

Public Methods

Method Description
GetProjects ( string &error ) : List

Get a list of all projects the current user has visibility of.

JiraComm ( string server, string user, Base64String password ) : System
SubmitBug ( string projectKey, string bugTitle, string bugDescription, int bugPriority, System.DateTime bugCreatedDate, string bugAuthor, string bugAssignedTo, List bugAttachments, string &error ) : string

Creates a new JIRA issue (a bug).

Private Methods

Method Description
AttachFile ( string server, string user, Base64String password, string issueKey, IBugAttachment attachment, string &error ) : JiraFileAttached

Attach a file to a JIRA issue (bug). https://docs.atlassian.com/jira/REST/latest/#idp1726000

GetJson ( string server, string path, string username, Base64String password, string &error ) : JToken

Gets a JSON object from the JIRA server using an HTTP GET

GetJson ( string server, string path, string username, string password, string &error ) : JToken

Gets a JSON object from the JIRA server using an HTTP GET

PostJson ( string server, string path, string username, Base64String password, JToken json_request, string &error ) : JToken

Sends a JSON object to a JIRA server using an HTTP POST and gets the JSON response from the server.

Method Details

GetProjects() public method

Get a list of all projects the current user has visibility of.
public GetProjects ( string &error ) : List
error string
return List

JiraComm() public method

public JiraComm ( string server, string user, Base64String password ) : System
server string
user string
password Base64String
return System

SubmitBug() public method

Creates a new JIRA issue (a bug).
public SubmitBug ( string projectKey, string bugTitle, string bugDescription, int bugPriority, System.DateTime bugCreatedDate, string bugAuthor, string bugAssignedTo, List bugAttachments, string &error ) : string
projectKey string The projects key e.g. TSCB.
bugTitle string The title of the bug.
bugDescription string The detailed description of the bug.
bugPriority int The priority of the bug.
bugCreatedDate System.DateTime The date the bug was created.
bugAuthor string The author of the bug.
bugAssignedTo string The person/group the bug is assigned to.
bugAttachments List List of files to attach to the bug.
error string Any errors during bug creation are written here.
return string