Permalink
Browse files

Rollback of custom fields since it gives issues

  • Loading branch information...
1 parent daa1590 commit fc488364b0787deae82d9b0fd3891e21be23bb10 @hhariri hhariri committed Mar 6, 2012
@@ -68,9 +68,12 @@ public class YTSRP26 : AuthenticatedYouTrackConnectionForIssue
protected static IEnumerable<Issue> issues;
}
+
+
+
public class YTSRP17 : AuthenticatedYouTrackConnectionForIssue
{
@@ -53,9 +53,11 @@ public class Issue
public string Description { get; set; }
public string State { get; set; }
public int Votes { get; set; }
+ public string Created { get; set; }
+ public string Update { get; set; }
public IList<Link> Links {get;set;}
- [JsonName("field")]
- public Dictionary<string, object> CustomFields { get; set; }
+ //[JsonName("field")]
+ //public Dictionary<string, string> CustomFields { get; set; }
}
}
@@ -76,7 +76,6 @@ Issue ConvertFromFields(Hashtable fields)
if (String.Compare(property.Name, "Links") == 0 && fields["Links"] != null)
{
issue.Links = ConvertLinks(fields["Links"]);
- fields.Remove("Links");
} else
{
// Special case. Assignee is Assignee on single and AssigneeName on multiple
@@ -90,22 +89,15 @@ Issue ConvertFromFields(Hashtable fields)
property.SetValue(issue, Convert.ChangeType(fields["AssigneeName"], property.PropertyType), null);
}
- fields.Remove("AssigneeName");
} else
{
property.SetValue(issue, Convert.ChangeType(fields[property.Name], property.PropertyType), null);
- fields.Remove(property.Name);
}
}
}
}
- issue.CustomFields = new Dictionary<string, object>();
- foreach (DictionaryEntry field in fields)
- {
- issue.CustomFields[field.Key.ToString()] = field.Value;
- }
return issue;
}

0 comments on commit fc48836

Please sign in to comment.