public static string GetCustomFieldValue(this Redmine.Net.Api.Types.Issue issue, string customFieldName) { foreach (var customField in issue.CustomFields) { if (customField.Name == customFieldName) { if (customField.Values != null) { foreach (CustomFieldValue cfValue in customField.Values) { if (cfValue != null && cfValue.Info != null) { return(cfValue.Info); } } } } } return(null); }
public static string GetTMSUrgencyCustomFieldValue(this Redmine.Net.Api.Types.Issue issue) { return(issue.GetCustomFieldValue("TMS Urgency")); }