Edgewall Software
Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13199 closed defect (fixed)

Improve workflow labels and hints

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.19
Component: ticket system Version:
Severity: normal Keywords: workflow
Cc: Branch:
Release Notes:
  • Ticket workflow status hint Next status will be <status> is added only if the status is changed by the operation.
  • The as <status> text is appended to the control for the leave_status operation (rendered for leave action as leave as <status>) only if it is the only operation for the action.
API Changes:
Internal Changes:

Description

Following fixes in #13087, the following action used on t.e.o did not work:

change_owner = assigned,closed -> *
change_owner.name = change ownership
change_owner.operations = set_owner
change_owner.permissions = TICKET_MODIFY

I added leave_status to the operations to make it work again. But now the control is rendered as change ownership to <new owner> as closed. It reads a bit awkwardly.

In TracWorkflow, we have this example, which is effectively the same:

reassign_reviewing = reviewing -> *
reassign_reviewing.label = reassign review
reassign_reviewing.operations = set_owner
reassign_reviewing.permissions = TICKET_MODIFY

What does a next status of * mean? The regression fixed in #13087 allows AdvancedTicketWorkflow's triage operation to determine the next status when the status change is -> *.

Therefore, it looks to me that a next status of * means "let the operation determine the next status". The only built-in operation that determines the next status is the leave_operation.

The documentation says:

For actions that should be available in all states, * may be used in place of the state

But that applies to the existing status, not the new status.

Maybe we only add the as next-status if leave_status is the only operation?

Also, I think we should only add Next status will be … if the status is changed by the operation.

Attachments (0)

Change History (4)

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

Replying to Ryan J Ollos:

What does a next status of * mean? The regression fixed in #13087 allows AdvancedTicketWorkflow's triage operation to determine the next status when the status change is -> *.

Therefore, it looks to me that a next status of * means "let the operation determine the next status". The only built-in operation that determines the next status is the leave_operation.

This was also discussed in comment:1:ticket:13086:

When a new status of action is not *, that means setting a new status.

I didn't fully grasp that point previously. We should document the rule. I agree that set_status is not needed (comment:8:ticket:13013) if we have a rule that a new status of * means the implicit status change will be skipped (and presumably handled by an operation defined in some other ITicketWorkflowController).

Also (comment:7:ticket:13013):

[ticket] workflow option normally accepts one or more of workflow controllers. If one of the controllers sets new status to a ticket, which of the controllers should set the status? All controllers should set? At least, I think that other controllers expect ConfigurableTicketWorkflow sets new status to a ticket even if the operation is not defined in the ConfigurableTicketWorkflow.

Yes, I think it makes sense that we expect ConfigurableTicketWorkflow to set the status, provided we also have the rule that it skips setting status when new status is *.

It may be worth revisiting to move the status change operation out of ConfigurableTicketWorkflow (comment:7:ticket:13013).

comment:3 by Ryan J Ollos, 5 years ago

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

Edited 1.0/TracWorkflow@3, TracWorkflow@78, 1.3/TracWorkflow@3.

Committed to 1.0-stable in r17141, merged in [17142:17144].

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

Replying to Ryan J Ollos:

This was also discussed in comment:1:ticket:13086:

When a new status of action is not *, that means setting a new status.

I didn't fully grasp that point previously. We should document the rule.

Documents in 1.3/TracWorkflow@4.

Version 0, edited 5 years ago by Ryan J Ollos (next)

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 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.