wiki:TracComponentAliasPlugin

Set aliases for Trac components

Description

This plugin allows you to change the component based off the selection from a custom field of type radio or select. The plugin is implemented in Python. The component will change only after the form is submitted, as opposed to some implementations in JavaScript that may dynamically change the field client-side.

As a sample configuration:

; test1 and test2 define the grouping.; the test names can be whatever you want.

[component_alias]
test1.alias = component1             ; change component to this alias if "TEST" is selected
test1.custom_field = custom_field    ; custom ticket field this applies to
test1.name = TEST                    ; name from the custom ticket field this applies to
test2.alias = component2             ; change component to this alias if "This is a test" is selected
test2.custom_field = custom_field    ; custom ticket field this applies to
test2.name = This is a test          ; name from the custom ticket field this applies to

[ticket-custom]
custom_field = select
custom_field.options = TEST|This is a test

Bugs/Feature Requests

Existing bugs and feature requests for TracComponentAliasPlugin are here.

If you have any issues, create a new ticket.

defect

1 / 1

task

2 / 2

Download

Download the zipped source from here.

Source

You can check out TracComponentAliasPlugin from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

13196 by zshahan on 2013-05-22 03:59:01
small fix for when changing the component after ticket is created, it actually changes the component. ticket:none
13155 by zshahan on 2013-05-17 15:38:11
small fix for when changing the component after ticket is created, it actually changes the component.
13051 by zshahan on 2013-05-04 04:18:43
Plugin should work as expected and play nice with other plugins.
(more)

Author/Contributors

Author: zshahan
Maintainer: Zack
Contributors:

Last modified 7 years ago Last modified on May 2, 2018, 7:00:53 PM