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.
Afficher le fichier Open project: TestStudio/JiraPlugin Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

JiraComm() public méthode

public JiraComm ( string server, string user, Base64String password ) : System
server string
user string
password Base64String
Résultat System

SubmitBug() public méthode

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.
Résultat string