Ejemplo n.º 1
0
 public void addWorklogAndRetainRemainingEstimateFixed(string in0, string in1, RemoteWorklog in2)
 {
     object[] results = this.Invoke("addWorklogAndRetainRemainingEstimate", new object[] {
                 in0,
                 in1,
                 in2});
     //return ((RemoteWorklog)(results[0]));
 }
Ejemplo n.º 2
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 = new DateTime();

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

                case TimeEstimateRecalcualationMethod.DoNotChange:
                    _service.addWorklogAndRetainRemainingEstimateFixed(_token, issue.DisplayId, remoteWorklog);
                    break;
                case TimeEstimateRecalcualationMethod.SetToNewValue:
                    _service.addWorklogWithNewRemainingEstimateFixed(_token, issue.DisplayId, remoteWorklog,
                                                                newTimeEstimate);
                    break;
                default:
                    throw new ArgumentOutOfRangeException("ProcessWorklog");
            }
        }
Ejemplo n.º 3
0
 /// <remarks/>
 public void updateWorklogAndRetainRemainingEstimateAsync(string in0, RemoteWorklog in1, object userState) {
     if ((this.updateWorklogAndRetainRemainingEstimateOperationCompleted == null)) {
         this.updateWorklogAndRetainRemainingEstimateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnupdateWorklogAndRetainRemainingEstimateOperationCompleted);
     }
     this.InvokeAsync("updateWorklogAndRetainRemainingEstimate", new object[] {
                 in0,
                 in1}, this.updateWorklogAndRetainRemainingEstimateOperationCompleted, userState);
 }
Ejemplo n.º 4
0
 public void updateWorklogAndRetainRemainingEstimate(string in0, RemoteWorklog in1) {
     this.Invoke("updateWorklogAndRetainRemainingEstimate", new object[] {
                 in0,
                 in1});
 }
Ejemplo n.º 5
0
 /// <remarks/>
 public void updateWorklogAndRetainRemainingEstimateAsync(string in0, RemoteWorklog in1) {
     this.updateWorklogAndRetainRemainingEstimateAsync(in0, in1, null);
 }
Ejemplo n.º 6
0
 public void updateWorklogWithNewRemainingEstimate(string in0, RemoteWorklog in1, string in2) {
     this.Invoke("updateWorklogWithNewRemainingEstimate", new object[] {
                 in0,
                 in1,
                 in2});
 }
Ejemplo n.º 7
0
 /// <remarks/>
 public void updateWorklogWithNewRemainingEstimateAsync(string in0, RemoteWorklog in1, string in2) {
     this.updateWorklogWithNewRemainingEstimateAsync(in0, in1, in2, null);
 }
Ejemplo n.º 8
0
 /// <remarks/>
 public void addWorklogAndRetainRemainingEstimateAsync(string in0, string in1, RemoteWorklog in2) {
     this.addWorklogAndRetainRemainingEstimateAsync(in0, in1, in2, null);
 }
Ejemplo n.º 9
0
 /// <remarks/>
 public void addWorklogAndAutoAdjustRemainingEstimateAsync(string in0, string in1, RemoteWorklog in2, object userState) {
     if ((this.addWorklogAndAutoAdjustRemainingEstimateOperationCompleted == null)) {
         this.addWorklogAndAutoAdjustRemainingEstimateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddWorklogAndAutoAdjustRemainingEstimateOperationCompleted);
     }
     this.InvokeAsync("addWorklogAndAutoAdjustRemainingEstimate", new object[] {
                 in0,
                 in1,
                 in2}, this.addWorklogAndAutoAdjustRemainingEstimateOperationCompleted, userState);
 }
Ejemplo n.º 10
0
 public RemoteWorklog addWorklogAndAutoAdjustRemainingEstimate(string in0, string in1, RemoteWorklog in2) {
     object[] results = this.Invoke("addWorklogAndAutoAdjustRemainingEstimate", new object[] {
                 in0,
                 in1,
                 in2});
     return ((RemoteWorklog)(results[0]));
 }
Ejemplo n.º 11
0
 /// <remarks/>
 public void addWorklogWithNewRemainingEstimateAsync(string in0, string in1, RemoteWorklog in2, string in3) {
     this.addWorklogWithNewRemainingEstimateAsync(in0, in1, in2, in3, null);
 }
Ejemplo n.º 12
0
 public RemoteWorklog addWorklogWithNewRemainingEstimate(string in0, string in1, RemoteWorklog in2, string in3) {
     object[] results = this.Invoke("addWorklogWithNewRemainingEstimate", new object[] {
                 in0,
                 in1,
                 in2,
                 in3});
     return ((RemoteWorklog)(results[0]));
 }