Modify ↓
Opened 12 years ago
Closed 12 years ago
#11355 closed enhancement (worksforme)
First letter of owner
| Reported by: | Owned by: | ejucovy | |
|---|---|---|---|
| Priority: | normal | Component: | WorkflowNotificationPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 1.0 |
Description
Hello,
I would like to be able to add in the subject of any mail sent the first letter of the ticket's owner if set.
I have tried using substring(${ticket.owner}, 0 or 1, 1) but this does not work (it is not resolve and all the characters are added to the subject).
Any way to do that ?
Attachments (0)
Note: See
TracTickets for help on using
tickets.



Try this:
${ticket.owner[0] if ticket.owner else ''}Note that the
${ }has to surround the entire expression, not just theticket.ownerpart.