public static string GetFieldValue(this YouTrackIssue issue, string fieldName) { var findField = issue.Field.FirstOrDefault(x => x.Name == fieldName); return(findField != null?findField.Value.ToString().Replace("[", string.Empty).Replace("]", string.Empty).Replace("\"", string.Empty).Trim() : string.Empty); }
public async Task CreateIssue(string projectId, YouTrackIssue youTrackIssue) { await _youTrackClient.IssuesClient.CreateIssue(projectId, youTrackIssue.MapTo <Issue>()); }