# Ticket #10837 (closed enhancement: fixed)

Opened 4 months ago

## How to change the ticket template ?

Reported by: Assigned to: guillaume.chomat@arcan.fr seccanj normal TestManagerForTracPlugin normal

### Description

Hi,

First of all, big thanks for your great job !!! ;-) I wonder how to change the template of the ticket ? In fact i would like to set automatically some fields when using the open ticket feature from a test cases.

Guillaume Chomat

## Change History

### 01/29/13 15:07:39 changed by seccanj

• status changed from new to closed.
• resolution set to fixed.

Hi Guillaume, the feature you are looking for is documented here.

You should install the TracTicketTemplatePlugin and define a template for your tickets in which you may use the parameters "testCaseNumber", "planId" and "planName", as explained in the manual.

For example, you may write your template as follows:

Name of tester:
Day of the test:
Test Case: %(testCaseNumber)s
ID of the test plan: %(planId)s
Name of the test plan: %(planName)s
Operating system:
Browser:
Environment:

Detailed description of the problem found:



This is of course just an example, but the important thing to notice is that your template may contain a reference to the test case and test plan information, which will be automatically filled by the TracTicketTemplatePlugin based on the input parameters that the TestManagerForTracPlugin will pass.

Having a reference in the ticket text is not mandatory, anyway, since the link is created by means of the ticket custom fields that are automatically filled in when opening a ticket from the test case [in the plan] page.

If you open the ticket from a "test catalog -> test case" page, the plan name and ID will be left blank (meaning the test case fails independently of the test plan?), while if you do it from the "test plan -> test case" page, the plan information will be filled automatically.

Hope this helps, ciao. Roberto

### 01/29/13 17:38:43 changed by anonymous

• status changed from closed to reopened.
• resolution deleted.

Hi Robertor,

Thank you for your detail explanation. I will try to use the Ticket Template plugin as mentionned

But how can i change the summary of the ticket ? It is possible ?

Kind regards

### 02/08/13 19:27:27 changed by seccanj

• status changed from reopened to closed.
• resolution set to fixed.

Hi, just edit the wiki page and change the text enclosed in double equal signs.

Check the manual on Trac-hacks for the exact procedure.

Ciao, Roberto

### Add/Change #10837 (How to change the ticket template ?)

Change Properties