Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Devel

multiple-value CFs and ExtractCustomFieldValue

 

 

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded


kriggle at akamai

Jul 22, 2013, 12:54 PM

Post #1 of 1 (60 views)
Permalink
multiple-value CFs and ExtractCustomFieldValue

I've put together a patch to RT::Extension::ExtractCustomFieldValue which
adds the ability to extract multiple values using a single regex into a
multiple-value CF, submitted to rt.cpan.org as #86978 [0].

One issue I'm running into is that, if the scrip runs multiple times on a
ticket (eg. OnTransaction) I can end up with duplicate values in my custom
fields. This seems like something we might enforce at the custom field
level ("Enter multiple unique values"), but I've looked at the process of
adding new custom field types and that looks hairy.

My thought is to add a 'u' flag to the regex line in
ExtractCustomFieldValue, to extend the patch I wrote and enforce
uniqueness when I add new values to a multiple-value CF. Would Best
Practical be interested in taking a patch like that?

- Kevin


[0]: https://rt.cpan.org/Ticket/Display.html?id=86978

Request Tracker devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.