[Rt-devel] [PATCH] Ticket history custom fields by CLI

lwang lwang at clusterfs.com
Mon Feb 13 23:35:26 EST 2006


Hi there,
The attachment is my patch against 3.5.5 for setting/retrieving ticket 
transaction custom fields by CLI.

The custom fields for transaction will be displayed the same way as for 
ticket.

To set a custom field in a transaction, I use the following syntax:

$ rt comment -f CF-CommentType="Progress Update" -m "test" 9600

CommentType is the custom field name I defined for ticket transactions.

BTW, you can specify multiple custom fields on the same command line by 
just adding any more "-f CF-Name=Value".  Here is an example:

$ rt comment -f CF-Realts='2006-2-14 11:47:02' -f CF-Abc=123 -f 
CF-CommentType="Progress Update" -m "multiple cfs" 9600

Jesse, or any expert, could you review them?

I will be very glad if this patch is accepted by RT.

Thanks very much.

- Wang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: REST-ticket-custom-field.patch
Type: text/x-patch
Size: 2168 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20060214/0262f14e/REST-ticket-custom-field.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt-history-custom-field.patch
Type: text/x-patch
Size: 2256 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20060214/0262f14e/rt-history-custom-field.bin


More information about the Rt-devel mailing list