Example #1
0
 /// <remarks/>
 public void progressWorkflowActionAsync(string in0, string in1, string in2, RemoteFieldValue[] in3) {
     this.progressWorkflowActionAsync(in0, in1, in2, in3, null);
 }
Example #2
0
 /// <remarks/>
 public void progressWorkflowActionAsync(string in0, string in1, string in2, RemoteFieldValue[] in3, object userState) {
     if ((this.progressWorkflowActionOperationCompleted == null)) {
         this.progressWorkflowActionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnprogressWorkflowActionOperationCompleted);
     }
     this.InvokeAsync("progressWorkflowAction", new object[] {
                 in0,
                 in1,
                 in2,
                 in3}, this.progressWorkflowActionOperationCompleted, userState);
 }
Example #3
0
 public RemoteIssue progressWorkflowAction(string in0, string in1, string in2, RemoteFieldValue[] in3) {
     object[] results = this.Invoke("progressWorkflowAction", new object[] {
                 in0,
                 in1,
                 in2,
                 in3});
     return ((RemoteIssue)(results[0]));
 }
Example #4
0
 /// <remarks/>
 public void updateIssueAsync(string in0, string in1, RemoteFieldValue[] in2, object userState) {
     if ((this.updateIssueOperationCompleted == null)) {
         this.updateIssueOperationCompleted = new System.Threading.SendOrPostCallback(this.OnupdateIssueOperationCompleted);
     }
     this.InvokeAsync("updateIssue", new object[] {
                 in0,
                 in1,
                 in2}, this.updateIssueOperationCompleted, userState);
 }
Example #5
0
 /// <remarks/>
 public void updateIssueAsync(string in0, string in1, RemoteFieldValue[] in2) {
     this.updateIssueAsync(in0, in1, in2, null);
 }
Example #6
0
 public RemoteIssue updateIssue(string in0, string in1, RemoteFieldValue[] in2) {
     object[] results = this.Invoke("updateIssue", new object[] {
                 in0,
                 in1,
                 in2});
     return ((RemoteIssue)(results[0]));
 }
Example #7
0
        internal void ProcessAction(JiraIssue issue, IIssueAction action, IIssueUser assignTo)
        {
            List<RemoteFieldValue> actionParams = new List<RemoteFieldValue>();

            RemoteField[] fields = _service.getFieldsForAction(_token, issue.DisplayId, action.Id);
            foreach (RemoteField field in fields)
            {
                RemoteFieldValue param = new RemoteFieldValue();
                string paramName = param.id = field.id;

                if (StringComparer.OrdinalIgnoreCase.Equals("Resolution", field.name))
                    param.values = new string[] { FindFixResolution() };
                else if (StringComparer.OrdinalIgnoreCase.Equals("Assignee", field.name))
                    param.values = new string[] { assignTo.Id };
                else if (StringComparer.OrdinalIgnoreCase.Equals("Worklog", paramName))	// JIRA 4.1 - worklogs are required!
                    continue;
                else
                {
                    param.values = issue.GetFieldValue(paramName);
                    if (param.values == null || param.values.Length == 0 || (param.values.Length == 1 && param.values[0] == null))
                    {
                        string setting = _settings(String.Format("{0}:{1}", action.Name, field.name));
                        if(setting != null)
                            param.values = new string[] { setting };
                    }
                }

                actionParams.Add(param);
            }

            RemoteIssue newIssue = _service.progressWorkflowAction(_token, issue.DisplayId, action.Id, actionParams.ToArray());
        }