Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5880 closed enhancement (worksforme)

Change custom ticket field when closing a ticket.

Reported by: denney@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Is it possible to change a custom ticket field when closing a ticket? I have a "Current Status" field with things like "active", "patch", "postponed", "closed" etc. I would like that custom field to be set to closed when someone closes the ticket.

I'm using Trac v0.10.4. Is this possible?

Attachments (0)

Change History (5)

comment:1 by Emmanuel Blot, 17 years ago

Component: generalticket system

comment:2 by ThurnerRupert, 17 years ago

automatic? hmm … we would need a similar thing for classification, i.e. the owner enters some values and on saving the system calculates and sets the risk class.

comment:3 by denney@…, 17 years ago

For now, as I use Subversion hooks, I added the following line to the trac-post-commit-hook file:

        ticket['tikstatus'] = 'closed'

on line 197 under:

        ticket['status'] = 'closed'
        ticket['resolution'] = 'fixed'

comment:4 by sid, 17 years ago

This can also be solved in milestone:0.11 with the workflow feature.

comment:5 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

Right,have a look at TracWorkflow.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.