コード例 #1
0
ファイル: Reference.cs プロジェクト: LomoSoft/JiraSVN
 /// <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);
 }
コード例 #2
0
ファイル: JiraConnection.cs プロジェクト: LomoSoft/JiraSVN
        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());
        }
コード例 #3
0
ファイル: Reference.cs プロジェクト: LomoSoft/JiraSVN
 /// <remarks/>
 public void progressWorkflowActionAsync(string in0, string in1, string in2, RemoteFieldValue[] in3) {
     this.progressWorkflowActionAsync(in0, in1, in2, in3, null);
 }
コード例 #4
0
ファイル: Reference.cs プロジェクト: LomoSoft/JiraSVN
 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]));
 }
コード例 #5
0
ファイル: Reference.cs プロジェクト: LomoSoft/JiraSVN
 /// <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);
 }
コード例 #6
0
ファイル: Reference.cs プロジェクト: LomoSoft/JiraSVN
 /// <remarks/>
 public void updateIssueAsync(string in0, string in1, RemoteFieldValue[] in2) {
     this.updateIssueAsync(in0, in1, in2, null);
 }
コード例 #7
0
ファイル: Reference.cs プロジェクト: LomoSoft/JiraSVN
 public RemoteIssue updateIssue(string in0, string in1, RemoteFieldValue[] in2) {
     object[] results = this.Invoke("updateIssue", new object[] {
                 in0,
                 in1,
                 in2});
     return ((RemoteIssue)(results[0]));
 }