linked ticket-custom fields

13 views
Skip to first unread message

carlospucelano

unread,
Sep 6, 2012, 3:37:02 PM9/6/12
to trac-...@googlegroups.com

Hi,

 

I am a TRAC novice. I am using the [ticket-custom] section to add more entries to the New Ticket menu. Now, I want to do something more complex: I have two entries like the ones below:

 

defect_sw_level = select
defect_sw_level.label = Defect Found in SW
defect_sw_level.options = Not a SW Defect |
 V179_Alpha                  |
 V179_Charlie        

 

 

defect_sub_level = select
defect_sub_level.label = Defect explanation

defect_sub_level.options = ONE  |
 TWO               |
 THREE                   |
 BLUE              |
 RED             |
 WHITE

 

 

 

I want defect_sub_level to display approved items depending on the value selected in defect_sw_level .......

 

 

For example, if I select V179_Alpha on defect_sw_level I want the menu for defect_sub_level to show something like 'ONE', 'TWO', 'THREE'.

But if I select V179_Charlie on defect_sw_level I want the menu for defect_sub_level to show something like 'BLUE', 'RED', 'WHITE'.

 

 

That way I do not have to create a gigantic menu for defect_sub_level if the options that are derived from defect_sw_level increase in time.

 

 

I have read about plugins, but I am not familiar how to add them to the database (just the python file ??) and how to tell trac-ini to pick them up.

 

 

Thanks !!

 

 

 

Carlos

RjOllos

unread,
Sep 7, 2012, 1:31:44 PM9/7/12
to trac-...@googlegroups.com

On Thursday, September 6, 2012 12:37:02 PM UTC-7, carlospucelano wrote:

I have read about plugins, but I am not familiar how to add them to the database (just the python file ??) and how to tell trac-ini to pick them up.


DynamicFieldsPlugin [1]might do what you want. You'll want to read [2] for information on how to install plugins.

Reply all
Reply to author
Forward
0 new messages