Index: api.py
===================================================================
--- api.py	(revision 4020)
+++ api.py	(working copy)
@@ -85,8 +85,11 @@
         return [action for action in actions.get(ticket['status'], ['leave'])
                 if action not in perms or perm_.has_permission(perms[action])]
 
-    def get_ticket_fields(self):
-        """Returns the list of fields available for tickets."""
+    def get_ticket_fields(self, all_fields=False):
+        """Returns the list of fields available for tickets.
+        optional Bool parameter 'all_fields':
+          True:  return all available fields
+          False: return only fields for display within Ticket GUI (default)"""
         from trac.ticket import model
 
         db = self.env.get_db_cnx()
@@ -142,6 +145,11 @@
             field = {'name': name, 'type': 'text', 'label': name.title()}
             fields.append(field)
 
+        # DateTime fields
+        if (all_fields):
+            fields.append( {'name': 'time', 'type': 'text', 'label': 'Created'} )
+            fields.append( {'name': 'changetime', 'type': 'text', 'label': 'Modified'} )               
+
         for field in self.get_custom_fields():
             if field['name'] in [f['name'] for f in fields]:
                 self.log.warning('Duplicate field name "%s" (ignoring)',

