Modify ↓
Opened 17 years ago
Closed 17 years ago
#5880 closed enhancement (worksforme)
Change custom ticket field when closing a ticket.
Reported by: | 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 , 17 years ago
Component: | general → ticket system |
---|
comment:2 by , 17 years ago
comment:3 by , 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:5 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Right,have a look at TracWorkflow.
Note:
See TracTickets
for help on using tickets.
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.