示例#1
0
        public Epic GetEpicByKey(String issueKey)
        {
            Issue epicIssue = _jira.Client.GetIssue(issueKey);

            epicIssue.SetJira(this.GetJira());
            return(Epic.FromIssue(epicIssue));
        }
示例#2
0
        public Epic GetEpic(String epicName)
        {
            Issue epicIssue = _jira.Client.GetEpicIssueFromProject(this.Name, epicName);

            epicIssue.SetJira(this.GetJira());
            return(Epic.FromIssue(epicIssue));
        }
示例#3
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);
        }
示例#4
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);
        }