wiki:TracComponentAliasPlugin

Version 6 (modified by rjollos, 19 months ago) (diff)

Refs #10883.

Trac Component Alias Plugin

Description

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

Bugs/Feature Requests

Existing bugs and feature requests for TracComponentAliasPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

; test1 and test2 define the grouping.  The name 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

Recent Changes

[13196] by zshahan on 2013-05-22 05: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 17: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 06:18:43
Plugin should work as expected and play nice with other plugins.

Author/Contributors

Author: zshahan
Maintainer: zshahan
Contributors: