コード例 #1
0
        public RemoteIssue CreateRemoteIssue(Issue issue)
        {
            var remoteIssue = new RemoteIssue {
                summary = issue.Summary,
                description = issue.Description,
                project = issue.Project,
                type = issue.IssueType,
                assignee = issue.Assignee
            };

            return remoteIssue;
        }
コード例 #2
0
 /// <remarks/>
 public void createIssueAsync(string in0, RemoteIssue in1, object userState) {
     if ((this.createIssueOperationCompleted == null)) {
         this.createIssueOperationCompleted = new System.Threading.SendOrPostCallback(this.OncreateIssueOperationCompleted);
     }
     this.InvokeAsync("createIssue", new object[] {
                 in0,
                 in1}, this.createIssueOperationCompleted, userState);
 }
コード例 #3
0
 /// <remarks/>
 public void createIssueAsync(string in0, RemoteIssue in1) {
     this.createIssueAsync(in0, in1, null);
 }
コード例 #4
0
 public RemoteIssue createIssue(string in0, RemoteIssue in1) {
     object[] results = this.Invoke("createIssue", new object[] {
                 in0,
                 in1});
     return ((RemoteIssue)(results[0]));
 }
コード例 #5
0
        private RemoteIssue BuildRemoteIssue(Issue issue)
        {
            RemoteIssue remoteIssue = new RemoteIssue();

            remoteIssue.summary = issue.Summary;
            remoteIssue.description = issue.Description;
            remoteIssue.project = issue.ProjectKey;
            remoteIssue.type = issue.IssueType;
            remoteIssue.assignee = issue.Assignee;
            remoteIssue.id = issue.Id;
            remoteIssue.key = issue.Key;
            remoteIssue.priority = issue.Priority;
            remoteIssue.environment = issue.Environment;

            List<RemoteCustomFieldValue> customFields = new List<RemoteCustomFieldValue>();

            foreach(var issueField in issue.CustomFields) {
                customFields.Add(new RemoteCustomFieldValue() { customfieldId = issueField.Key, values = new[] { issueField.Value } });
            }

            remoteIssue.customFieldValues = customFields.ToArray();

            remoteIssue.created = issue.Created;
            remoteIssue.updated = issue.Updated;

            return remoteIssue;
        }
コード例 #6
0
        private Issue BuildIssue(string loginToken, RemoteIssue remote)
        {
            var result = new Issue {
                Summary = remote.summary,
                Description = remote.description,
                Project = GetProjectNameFromKey(loginToken, remote.project),
                IssueType = remote.type,
                Assignee = remote.assignee,
                Id = remote.id,
                Key = remote.key,
                Priority = remote.priority,
                Environment = remote.environment,
                Reporter = remote.reporter,
                AffectsVersion = GetAffectsVersion(remote.affectsVersions),
                Updated = remote.updated,
                Created = remote.created,
                ProjectKey = remote.project,
                CustomFields = GetCustomFields(remote.customFieldValues),
                Status = remote.status,
            };

            return result;
        }