Edgewall Software

Opened 14 years ago

Last modified 13 years ago

#9440 closed defect

Accepting a ticket in enterprise workflow leaves no valid action to leave state — at Version 1

Reported by: spencer.wasden@… Owned by:
Priority: normal Milestone:
Component: ticket system Version: 0.11.6
Severity: normal Keywords: enterprise workflow accept state
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I started using enterprise-workflow.ini (6324). After I accept a new ticket, my Action section only has these two options:

  • leave as accepted
  • accept (Next status will be 'accepted')

Selecting either one (then submitting changes) results in those same two available options. From what I can see there's no way to get out of this state.

Modifying these two unrelated lines in the workflow…

 assign = new -> assigned
 test = new,assigned,in_work -> in_QA

…by changing them to:

 assign = new,accepted -> assigned
 test = new,assigned,in_work,accepted -> in_QA 

Allows you to accept a ticket without getting stuck. So the final workflow is:

[ticket-workflow]
; enterprise-workflow.ini

; assign, reassign, unassign actions
assign = new,accepted -> assigned
assign.operations = set_owner
assign.permissions = TICKET_MODIFY

reassign = assigned,in_work -> assigned
reassign.operations = set_owner
reassign.permissions = TICKET_MODIFY

reassign_closed = closed -> closed
reassign_closed.name = reassign
reassign_closed.operations = set_owner
reassign_closed.permissions = TICKET_MODIFY

unassign = assigned,in_work -> new
unassign.operations = del_owner
unassign.permissions = TICKET_MODIFY

; leave actions
leave = * -> *
leave.operations = leave_status
leave.default = 1

; test actions
test = new,assigned,in_work,accepted -> in_QA
test.permissions = TICKET_MODIFY

; resolve actions
resolve = in_QA -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_MODIFY

fail = in_QA -> assigned
fail.permissions = TICKET_MODIFY

; start/stop actions
start = assigned -> in_work
start.operations = set_owner_to_self
start.permissions = TICKET_MODIFY

stop = in_work -> assigned
stop.permissions = TICKET_MODIFY

; reopen actions
reopen = closed -> new
reopen.operations = del_resolution
reopen.permissions = TICKET_CREATE

; request info actions
; For tickets with an owner, they go back to assigned
requestinfo = assigned,in_work,in_QA -> infoneeded
requestinfo.name = request info
requestinfo.permissions = TICKET_MODIFY

provideinfo = infoneeded -> assigned
provideinfo.name = provide info
provideinfo.permissions = TICKET_MODIFY
provideinfo.default = 2

; But tickets without an owner go back to new.
requestinfo_new = new -> infoneeded_new
requestinfo_new.name = request info
requestinfo_new.permissions = TICKET_MODIFY

provideinfo_new = infoneeded_new -> new
provideinfo_new.name = provide info
provideinfo_new.permissions = TICKET_MODIFY
provideinfo_new.default = 2

Change History (1)

comment:1 by Christian Boos, 14 years ago

Description: modified (diff)
Milestone: next-minor-0.12.x

Sounds simple enough… sorry for not having noticed the report earlier.

Note: See TracTickets for help on using tickets.