Hi,
I just want to customize my Trac Application. Whenever any tickets are created, I want to keep some criteria like some particular fields are not filed it should not allow users to create ticket. So can you please help me on this.
Thanks & Regards
Thiyagarajan.A
Here is a plugin that may do what you need. Take a look.
https://github.com/daltonmatos/trac-plugins/tree/master/ConditionalFieldsPlugin
--
Dalton Barreto
http://daltonmatos.com
https://github.com/daltonmatos/trac-plugins/tree/master/ConditionalField
sPlugin
--
You received this message because you are subscribed to the Google
Groups "Trac Development" group.
To post to this group, send email to trac...@googlegroups.com.
To unsubscribe from this group, send email to
trac-dev+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.
Am 14.09.2011 08:05, schrieb A, Thiyagarajan (NSN - IN/Bangalore):
> Here is a plugin that may do what you need. Take a look.
>
> https://github.com/daltonmatos/trac-plugins/tree/master/ConditionalField
> sPlugin
ConditionalFields should do fine, but I've not used it by now. Did you
succeed already?
If not, you might want to have a look at DynamicFieldsPlugin. With your
requirement in mind I would setup
[ticket-custom]
summary.clear_on_hide = true
summary.hide_when_type = '---select type---'
Untested, but you'll get the idea. I've chosen summary, because without
summary Trac will complain and deny to create the ticket, so you should
get exactly what you want. Still required field coloring might be a nice
(unique) feature of ConditionalFields.
Would be nice, if you'd report back on success too. Thanks.
Steffen Hoffmann
(hasienda)
[1] http://trac-hacks.org/wiki/DynamicFieldsPlugin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk50keQACgkQ31DJeiZFuHfthwCgsWhzNVKXT1Dq4yhroLsYI2qU
Sz8AnR7+joHBeBTGKf+zDhdU+jzagx7l
=NoZv
-----END PGP SIGNATURE-----
Yes. We have an internal Trac instance with this plugin running. We use Trac
every day, all day long, it's our main internal tool. In additional to
this we have
another plugin that validate the field content against our internal
LDAP database.
We do this validation mainly on the Cc field.
> If not, you might want to have a look at DynamicFieldsPlugin. With your
> requirement in mind I would setup
>
> [ticket-custom]
> summary.clear_on_hide = true
> summary.hide_when_type = '---select type---'
>
> Untested, but you'll get the idea. I've chosen summary, because without
> summary Trac will complain and deny to create the ticket, so you should
> get exactly what you want. Still required field coloring might be a nice
> (unique) feature of ConditionalFields.
>
I took a look at the DynamicFields source-code. It's an amazing
implementation! Congratulations!
I took a look at the DynamicFields source-code. It's an amazing
implementation! Congratulations!
Great to know, Rob! Rock on!