コード例 #1
0
        internal void ProcessWorklog(JiraIssue issue, string timeSpent, TimeEstimateRecalcualationMethod method, string newTimeEstimate)
        {
            var remoteWorklog = new RemoteWorklog();

            remoteWorklog.comment   = "Time logged";
            remoteWorklog.timeSpent = timeSpent;
            remoteWorklog.startDate = DateTime.Now;

            switch (method)
            {
            case TimeEstimateRecalcualationMethod.AdjustAutomatically:
                _service.addWorklogAndAutoAdjustRemainingEstimate(_token, issue.DisplayId, remoteWorklog);
                break;

            case TimeEstimateRecalcualationMethod.DoNotChange:
                _service.addWorklogAndRetainRemainingEstimate(_token, issue.DisplayId, remoteWorklog);
                break;

            case TimeEstimateRecalcualationMethod.SetToNewValue:
                _service.addWorklogWithNewRemainingEstimate(_token, issue.DisplayId, remoteWorklog,
                                                            newTimeEstimate);
                break;

            default:
                throw new ArgumentOutOfRangeException("ProcessWorklog");
            }
        }
コード例 #2
0
ファイル: JiraFilter.cs プロジェクト: brunzefb/JiraSVN
 public void ProcessWorklog(string timeSpent, TimeEstimateRecalcualationMethod method, string newTimeEstimate)
 {
 }
コード例 #3
0
ファイル: JiraConnection.cs プロジェクト: vradzius/JiraSVN
        internal void ProcessWorklog(JiraIssue issue, string timeSpent, TimeEstimateRecalcualationMethod method, string newTimeEstimate)
        {
            var remoteWorklog = new RemoteWorklog();
            remoteWorklog.comment = "Time logged";
            remoteWorklog.timeSpent = timeSpent;
            remoteWorklog.startDate = DateTime.Now;

            switch (method)
            {
                case TimeEstimateRecalcualationMethod.AdjustAutomatically:
                    _service.addWorklogAndAutoAdjustRemainingEstimate(_token, issue.DisplayId, remoteWorklog);
                    break;

                case TimeEstimateRecalcualationMethod.DoNotChange:
                    _service.addWorklogAndRetainRemainingEstimate(_token, issue.DisplayId, remoteWorklog);
                    break;
                case TimeEstimateRecalcualationMethod.SetToNewValue:
                    _service.addWorklogWithNewRemainingEstimate(_token, issue.DisplayId, remoteWorklog,
                                                                newTimeEstimate);
                    break;
                default:
                    throw new ArgumentOutOfRangeException("ProcessWorklog");
            }
        }
コード例 #4
0
ファイル: JiraIssue.cs プロジェクト: sametsahinn/JiraSVN
 public void ProcessWorklog(string timeSpent, TimeEstimateRecalcualationMethod method, string newTimeEstimate)
 {
     _connection.ProcessWorklog(this, timeSpent, method, newTimeEstimate);
 }
コード例 #5
0
ファイル: IssueItemView.cs プロジェクト: LomoSoft/JiraSVN
	    public void ProcessWorklog(string timeSpent, TimeEstimateRecalcualationMethod method, string newTimeEstimate)
	    {
            Issue.ProcessWorklog(timeSpent, method, newTimeEstimate);
	    }