#9100 closed enhancement (worksforme)
Please add a possibility to close ticket from outside web interface.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | automatic ticket closing |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Please add a possibility to close ticket by means other than web interface. Perhaps via trac-admin.
Reason: I'd like to have an option for putting in commit message sth like:
- fixing the nasty bug (Trac: #345)
and set up a hook for my repository to run sth like this: trac-admin /path/to/instance close fixed 345 and set a status of ticket 345 to close with resolution fixed.
Other satisfying (for me) solution is to add a possibility of parsing changelog by trac itself (or by repository plugin - I do not care about the implementation details) and closing the ticked when given pattern is detected in commit message.
Attachments (0)
Change History (3)
comment:1 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
Keywords: | automatic ticket closing → automatic ticket closing automatic |
---|
Thanks, it's good enough for me. Blame myself for not searching the wiki for phrase "automatically update" instead of "automatic closing". At least now other people could find it here on ticket system.
comment:3 by , 15 years ago
Keywords: | automatic ticket closing automatic → automatic ticket closing |
---|
I suppose you haven't seen the source:/branches/0.11-stable/contrib/trac-post-commit-hook, which does exactly this, for Trac 0.10 and 0.11.
For Trac 0.12, you need to activate the tracopt.ticket.commit_updater.* components, and install a generic hook (see 0.12/TracRepositoryAdmin).
That being said, a TracAdmin command
ticket close [resolution] id
is not necessarily a bad idea, so if someone feels the need for it for another use case and happens to have a patch, the ticket can be reopened.