Edgewall Software

Changes between Version 4 and Version 5 of 1.1/TracWorkflow


Ignore:
Timestamp:
Nov 28, 2014, 11:08:10 PM (9 years ago)
Author:
Ryan J Ollos
Comment:

Document addition of label attribute in #11828.

Legend:

Unmodified
Added
Removed
Modified
  • 1.1/TracWorkflow

    v4 v5  
    6161     {{{
    6262resolve_new = new -> closed
    63 resolve_new.name = resolve
     63resolve_new.label = resolve
    6464resolve_new.operations = set_resolution
    6565resolve_new.permissions = TICKET_MODIFY
     
    7171{{{
    7272resolve_accepted = accepted -> closed
    73 resolve_accepted.name = resolve
     73resolve_accepted.label = resolve
    7474resolve_accepted.permissions = TICKET_MODIFY
    7575resolve_accepted.operations = set_resolution
    7676}}}
    7777
    78 In this example, we see the `.name` attribute used.  The action here is `resolve_accepted`, but it will be presented to the user as `resolve`.
     78In this example, we see the `.label` attribute used.  The action here is `resolve_accepted`, but it will be presented to the user as `resolve`. The `.label` attribute is new in Trac 1.1.3 and is functionally the same as the `.name` attribute, which is now deprecated. If neither `.label` or `.name` is specified, the action will be presented to the user as //resolve accepted//, the underscores having been replaced by whitespace (//Since 1.1.3//).
    7979
    8080For actions that should be available in all states, `*` may be used in place of the state.  The obvious example is the `leave` action:
     
    110110{{{
    111111testing = new,accepted,needs_work,assigned,reopened -> testing
    112 testing.name = Submit to reporter for testing
     112testing.label = Submit to reporter for testing
    113113testing.permissions = TICKET_MODIFY
    114114
    115115reject = testing -> needs_work
    116 reject.name = Failed testing, return to developer
     116reject.label = Failed testing, return to developer
    117117
    118118pass = testing -> closed
    119 pass.name = Passes Testing
     119pass.label = Passes Testing
    120120pass.operations = set_resolution
    121121pass.set_resolution = fixed
     
    156156{{{
    157157reassign_reviewing = reviewing -> *
    158 reassign_reviewing.name = reassign review
     158reassign_reviewing.label = reassign review
    159159reassign_reviewing.operations = set_owner
    160160reassign_reviewing.permissions = TICKET_MODIFY
     
    185185reassign_reviewing = reviewing -> *
    186186reassign_reviewing.operations = set_owner
    187 reassign_reviewing.name = reassign review
     187reassign_reviewing.label = reassign review
    188188reassign_reviewing.permissions = TICKET_MODIFY
    189189}}}
     
    195195{{{
    196196resolve_new = new -> closed
    197 resolve_new.name = resolve
     197resolve_new.label = resolve
    198198resolve_new.operations = set_resolution
    199199resolve_new.permissions = TICKET_MODIFY