private Epic(String key, String summary) { Key = key; Fields = new IssueFields() { Assignee = User.UndefinedUser, Reporter = User.UndefinedUser, Summary = "", Created = DateTime.MinValue, Updated = DateTime.MinValue, Status = new Status() { ID = 0, Name = "Open" }, TimeTracking = new TimeTracking() { Issue = this, OriginalEstimateSeconds = 0, RemainingEstimateSeconds = 0 } }; Summary = summary; ERPCode = ""; Rank = 0; Reporter = User.UndefinedUser; Assignee = User.UndefinedUser; Issues = new List <Issue>(); EstimateInSeconds = 0; TimeSpentInSeconds = 0; }
/// <summary> /// Update issue /// </summary> /// <param name="fields"></param> /// <returns></returns> public Issue UpdateIssue(IssueFields fields) { fields.Project = this; Issue issue = GetJira().Client.UpdateIssue(fields); issue.SetJira(this.GetJira()); issue.Load(); return(issue); }
public Issue CreateIssue(IssueFields fields) { fields.Project = new Project() { ID = this.ID }; Issue issue = GetJira().Client.AddIssue(fields); issue.SetJira(this.GetJira()); issue.Load(); return(issue); }
private Epic(String key, String summary) { Key = key; Fields = new IssueFields() { Assignee = User.UndefinedUser, Reporter = User.UndefinedUser, Summary = "", Created = DateTime.MinValue, Updated = DateTime.MinValue, Status = new Status() { ID = 0, Name = "Open" }, TimeTracking = new TimeTracking() { Issue = this, OriginalEstimateSeconds = 0, RemainingEstimateSeconds = 0 } }; Summary = summary; Reporter = User.UndefinedUser; Assignee = User.UndefinedUser; Issues = new List<Issue>(); EstimateInSeconds = 0; TimeSpentInSeconds = 0; }
//The private constructor for undefined epics private Epic(String key, IssueFields fields, Jira jira) { base.Key = key; base.Fields = fields; base.SetJira(jira); }
//The private constructor for undefined epics private Epic(String key, IssueFields fields, Jira jira) { base.Key = key; base.Fields = fields; base.SetJira(jira); }
public Issue AddIssue(IssueFields fields) { throw new NotImplementedException(); }
public Issue CreateIssue(IssueFields fields) { fields.Project = new Project() { ID = this.ID }; Issue issue = GetJira().Client.AddIssue(fields); issue.SetJira(this.GetJira()); issue.Load(); return issue; }