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;
        }
 /// <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);
 }
 /// <remarks/>
 public void createIssueAsync(string in0, RemoteIssue in1) {
     this.createIssueAsync(in0, in1, null);
 }
 public RemoteIssue createIssue(string in0, RemoteIssue in1) {
     object[] results = this.Invoke("createIssue", new object[] {
                 in0,
                 in1});
     return ((RemoteIssue)(results[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;
        }
        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;
        }