On Apr 16, 12:06 pm, "Brian McCann" <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to manage components in Trac? > what if you want to have a Main Component with sub-components like > > First component > sub1 > sub2 > sub3 > > Second Component > sub1 > sub2 > > Is there away to do this? Priorities and Ticket type have a way to order items > Thanks, > Brian
It isn't elegent, but we do this with a custom field. You can add something like the following to your Trac.ini: (Given "Comp1" and "Comp2" in the list of components) [ticket-custom] subcomponent = select subcomponent.label = Sub Component subcomponent.order = 0 subcomponent.options = Comp1.Sub1|Comp1.Sub2|Comp1.Sub3|Comp2.Sub1| Comp2.Sub2|Comp2.Sub3|Other|New subcomponent.value = 7 This results in a component and subcomponent drop-down for each ticket, but no relationship between them is enforced. In regards to the sorting issue, Trac sorts the component field as text, so you'd have to pad the earlier numbers with 0s. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
