示例#1
0
 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);
 }
示例#2
0
 public static string GetTMSUrgencyCustomFieldValue(this Redmine.Net.Api.Types.Issue issue)
 {
     return(issue.GetCustomFieldValue("TMS Urgency"));
 }