Hi,
Thanks for your answer.
I am aware that custom field can be given a default value in trac.ini.
I am looking for something smarter than that.
The custom field is actually a build number. I don't want the user to enter
the build number manually, because it is annoying and can cause lots of
mistakes. I want the current build number to automatically appear in the
custom field, whenever a user opens a new ticket.
Can I update this field somehow externally?
The build number is in a file on the system.

Is there a way of defining system global variable like $USER that will
contain custom data. Then use this global variable to automatically set the
value of the custom field or even use it in ticket system queries?

In general, does Trac have some way of communicating with the "outside
world", in order to get external information?

Thanks,
Guy.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of [email protected]
Sent: Wednesday, January 21, 2009 5:00 PM
To: Trac Users
Subject: [Trac] Re: Fields default values


On Jan 21, 2:23 am, "Guy Bashan" <[email protected]> wrote:
> Hi all,
>
> Is it possible to automatically enter a default value to a custom field in
> trac ticketing system?
>
> I have a custom field containing the current build of the ticket. I want
the
> current build to be entered to the custom field automatically.
>
> The data of the current build will be somewhere in a text file on the
> machine.
>
> Thanks,
>
> Guy.

[ticket-custom]
mycustomField = select
mycustomField.label = Build Version
mycustomField.options =1.00|1.01|1.02|other|NA
mucustomField.value=2
defaults to 1.01





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to