public static IStandardInstance ToStandardInstance(Issue jiraIssue, ClientUser author, ClientUser assignee, string jiraBaseUrl)
        {
            var mappedInstance = new JiraStandardIssue()
            {
                Author      = author,
                Created     = jiraIssue.Created.Value,
                Summary     = jiraIssue.Summary,
                Identifiers = new Dictionary <string, Identifiers>(),
                Type        = jiraIssue.Type.Name,
                Assignee    = assignee,
                Status      = jiraIssue.Status.Name,
                Priority    = jiraIssue.Priority.Name,
                Labels      = jiraIssue.Labels.ToArray()
            };

            SetIdentifiers(jiraIssue, mappedInstance, jiraBaseUrl);
            return(mappedInstance);
        }
        public async Task <IStandardInstance> ToStandardObject(Issue jiraIssue)
        {
            var author = (jiraIssue.Reporter == null) ? null : await GetUserMap(jiraIssue.Reporter);

            var assignee = (jiraIssue.Assignee == null) ? null : await GetUserMap(jiraIssue.Assignee);

            var mappedInstance = new JiraStandardIssue()
            {
                Author      = author,
                Created     = jiraIssue.Created.Value,
                Summary     = jiraIssue.Summary,
                Type        = jiraIssue.Type.Name,
                Assignee    = assignee,
                Status      = jiraIssue.Status.Name,
                Priority    = jiraIssue.Priority.Name,
                Labels      = jiraIssue.Labels.ToArray(),
                Identifiers = GetIdentifiers(jiraIssue, _configSettings.HomeUri)
            };


            return(mappedInstance);
        }