Modify ↓
Opened 5 months ago
Closed 4 months ago
#10837 closed enhancement (fixed)
How to change the ticket template ?
| Reported by: | guillaume.chomat@… | Owned by: | seccanj |
|---|---|---|---|
| Priority: | normal | Component: | TestManagerForTracPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
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.
Thanks in advance for your answer.
Guillaume Chomat
Attachments (0)
Change History (3)
comment:1 Changed 5 months ago by seccanj
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 5 months ago by anonymous
- Resolution fixed deleted
- Status changed from closed to reopened
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
comment:3 Changed 4 months ago by seccanj
- Resolution set to fixed
- Status changed from reopened to closed
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
Note: See
TracTickets for help on using
tickets.


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:
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