Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
 //The private constructor for undefined epics
 private Epic(String key, IssueFields fields, Jira jira)
 {
     base.Key = key;
     base.Fields = fields;
     base.SetJira(jira);
 }
Ejemplo n.º 6
0
 //The private constructor for undefined epics
 private Epic(String key, IssueFields fields, Jira jira)
 {
     base.Key    = key;
     base.Fields = fields;
     base.SetJira(jira);
 }
Ejemplo n.º 7
0
 public Issue AddIssue(IssueFields fields)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
 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;
 }