On Tuesday, February 11, 2014 6:40:44 AM UTC-8, Soha wrote: > > Thanks a lot for the help. I am facing multiple issues with my work flow > and am not sure how to make modification and need some help. > > > Here is my Workflow : > > [ticket-workflow] > analyze = new -> assign_severity_and_analyze > analyze.default = 999 > analyze.operation = set_owner_to_self > analyze.permissions = TICKET_CREATE > assign = assign_severity_and_analyze -> triage_and_assignment > assign.default = 996 > assign.operation = set_owner > assign.permission = TICKET_MODIFY > close = user_test -> closed > close.default = 994 > close.operation = set_owner > close.permissions = TICKET_CREATE > fix = triage_and_assignment -> fix > fix.default = 995 > fix.operation = set_owner > fix.permissions = TICKET_MODIFY > leave = closed -> * > leave.default = 1000 > leave.operations = leave_status > reopen = unit_test,user_test -> triage_and_assignment > reopen.default = 992 > reopen.operation = del_resolution > reopen.permissions = TICKET_CREATE > resolved.default = 993 > resolved.operation = set_resolution > resolved.permissions = TICKET_MODIFY > resolved = triage_and_assignment, assign_severity_and_analyze, new, > unit_test, fix -> closed > test = fix -> unit_test > test.default = 997 > test.operation = set_owner > test.permissions = TICKET_MODIFY > uat = unit_test -> user_test > uat.default = 998 > uat.operation = set_owner > > > > I was asked to create the workflow such that the tester can close the > ticket at any point of phase. So I added resolved transition so that the > person will be given the option to close it every time. Now the issue is > whenever there is any modification to the ticket it is automatically moving > to next phase irrespective of the selection. >
At least for typical cases, you should always have the following "leave" action: leave = * -> * It may not be entirely intuitive from the end-user standpoint, but an action is always required when submitting a ticket. Therefore, if you want to modify a ticket property without changing the ticket state, you need to "leave" the ticket. Ethan found ticket #9510 that is related to your previous issue. It was clear from reading that ticket that other users may also fail to understand that a workflow action is always required when submitting a ticket: http://trac.edgewall.org/ticket/9510#comment:2 Programming the workflow can be a bit tricky, so I suggest making a single change at a time and then thoroughly testing your changes. Then, if you get undesirable behavior it will be easy to ask specific questions about the action that you've changed. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
