[rt-devel] DefaultCustomFieldValue in RT 4.2.11

Andre.Schmelzer at t-systems.com Andre.Schmelzer at t-systems.com
Wed Nov 18 05:13:04 EST 2015


Dear members of this mailing list,

since an upgrade from RT 3.8.8 to 4.2.11 our mechanism to set specific values for custom fields on creation of tickets is no longer working.

I was wondering how this can be achieved with the latter RT. Found this WIKI article: http://requesttracker.wikia.com/wiki/DefaultCustomFieldValue (and others).
But to be honest, I do not really understand how this is supposed to work.
Creating the Callback, okay, I get that. But then:

"Second, you need to go to the custom fields values class, and add the method that will return the default value."
Which one is the custom fields values class?
And even after the second code snippet (example) I don't get it.

Then the author of this article goes ahead, but his explanations are not really helpful, at least not for me.
Even if this should work somehow in a magic way, how does one specify the default value for a certain custom field?
In the past we had a mechanism to write 'default' in the custom field description, and this value was preselected when creating a ticket.
This was implemented in 3.8.8 in /var/www/html/rt/local/html/Elements/EditCustomFieldSelect but the changes compared to the code in 4.2.11 are huge and unfortunately I am not really comfortable with Perl ...

So any advice would be highly appreciated, thanks & Cheers

André.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20151118/2fd12a1c/attachment.html>


More information about the rt-devel mailing list