Edgewall Software
Modify

Opened 18 years ago

Closed 16 years ago

#3902 closed enhancement (fixed)

How could I deny operations on closed tickets

Reported by: adriano.vieira@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.11
Component: ticket system Version: 0.10
Severity: normal Keywords: workflow permission
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I want to deny operations on closed tickets. I mean if a ticket is closed then this ticket couldn't be modified (reopened or anyting else).

How could I do this?

Thx a lot in advance.

Adriano Vieira

Attachments (0)

Change History (5)

comment:1 by Christian Boos, 18 years ago

Customize the WorkFlow. Should be as simple as removing the available operations available on the closed state (i.e. reopen), in the [ticket-status] section.

Note however that the old WorkFlow branch is based on a 0.10dev Trac version, and that the new WorkFlow was recently rebased on 0.11dev (and doesn't have much features right now… work in progress).

So for pure 0.10 installations, WorkFlow is not really usable. Hopefully 0.11 won't take that long ;)

comment:2 by Christian Boos, 17 years ago

Keywords: workflow permission added

This issue should probably be examined in the light of the recent/future changes concerning workflow and security.

comment:3 by Christian Boos, 17 years ago

Milestone: 0.11

comment:4 by Eli Carter, 17 years ago

WorkFlow now allows you to customize the state transitions, so you can make 'closed' be a dead end, or only allow TICKET_ADMIN to re-open, or whatever.

Preventing modification of all fields, however, is more than WorkFlow will do for you.

comment:5 by osimons <simon-code@…>, 16 years ago

Milestone: 0.11.10.11
Resolution: fixed
Status: newclosed

See TracWorkflow for workflow docs. As ecarter says, it should be quite easy to prevent reopening closed tickets with 0.11 (or require a higher permission).

The other alternative for 0.11 that also solves this for fields and all changes, is making simple, custom security policy (TracDev/SecurityBranch). On permission check to see if the user has permission to modify or append this resource (ticket), if ticket is closed then only allow if the user has TICKET_ADMIN (or some other variation along these lines). See trunk/sample-plugins for examples.

Closing as 'fixed' in recognition of the major efforts that went into 0.11 to make the requested enhancement possible.

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.