Edgewall Software
Modify

Opened 5 years ago

Closed 5 years ago

#11948 closed defect (fixed)

Upgrade db33 adds dead-end action to customized workflows

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Milestone: 1.1.4
Component: ticket system Version:
Severity: normal Keywords: workflow
Cc: Branch:
Release Notes:

In the db33 upgrade step, the create_and_assign action is only added if the assigned state exists in the workflow.

API Changes:

Description

In #2045 the db33 upgrade was added that adds a <none> -> assigned action. We had a slightly simplified custom workflow without an assigned state. Now we have that dead-end action to assigned, and tickets in that state can't be closed or "unassigned".

I assume for us the solution is to change the workflow again and remove that action, add a temporary unassign action and unassign all tickets in that dead-end state.

But Trac should consider only upgrading default workflows or only actions to states that already exist.

Attachments (0)

Change History (4)

in reply to:  description comment:1 by Ryan J Ollos, 5 years ago

Component: generalticket system
Keywords: workflow added
Milestone: 1.1.4
Owner: set to Ryan J Ollos
Status: newassigned

Replying to anonymous:

But Trac should consider only upgrading default workflows or only actions to states that already exist.

We can check that the assigned state is defined before adding the action.

in reply to:  description comment:2 by Ryan J Ollos, 5 years ago

Replying to anonymous:

I assume for us the solution is to change the workflow again and remove that action, add a temporary unassign action and unassign all tickets in that dead-end state.

User with TICKET_ADMIN should have a special reset action, which allows tickets to be repaired when they are in states that are no longer defined. Documentation about the reset action has recently been added to TracWorkflow#BasicTicketWorkflowCustomization.

comment:3 by Ryan J Ollos, 5 years ago

Proposed changes in log:rjollos.git:t11948.

comment:4 by Ryan J Ollos, 5 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to trunk in [13728].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Ryan J Ollos 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.