| 257 | |
| 258 | |
| 259 | == Workflow == |
| 260 | |
| 261 | You can control which workflow must be executed when a ticket goes from state to another. Per state you have to associate a workflow, eg: |
| 262 | |
| 263 | * email2trac.conf |
| 264 | {{{ |
| 265 | [project] |
| 266 | # workflow_<ticket status>: <workflow name> |
| 267 | workflow_closed: reopen |
| 268 | workflow_infoneeded: provideinfo |
| 269 | }}} |
| 270 | |
| 271 | * trac.ini: |
| 272 | {{{ |
| 273 | reopen = closed -> reopened |
| 274 | reopen.permissions = TICKET_CREATE |
| 275 | reopen.operations = del_resolution |
| 276 | |
| 277 | provideinfo = infoneeded -> moreinfo |
| 278 | provideinfo.permissions = TICKET_CREATE |
| 279 | provideinfo.name = info provided |
| 280 | }}} |
| 281 | |
| 282 | When an email is received and the state of the ticket is: |
| 283 | * ''closed'' it will execute the ''reopen'' workflow. |
| 284 | * ''infoneeded'' it will execute the ''infoneeded'' workflow |