[PATCH] root=self option to automatically refer to current ticket when used within a ticket
|Reported by:||Patrick Schaaf||Owned by:||Chris Nelson|
This patch enables a special value for the
root=ID macro option,
root=self. It can be used (and only makes sense) when the macro is embedded within a ticket, e.g. in the description of the parent of a tree of child/sub tickets.
root=self automatically determines the ticket ID of the current ticket by looking at the URL path_info (numeric stuff after /ticket/), and then uses that as the single root for the display.
While it is possibly for users with TICKET_EDIT_DESCRIPTION permission to edit the description after ticket creation, when they know the ticket ID, that is not the case for some users. This patch helps that situation, as the macro can be put into the description during ticket creation.
Also, when using clone, or other kinds of description-inheriting other-ticket creation, a description-embedded gantt macro call with
root=self will continue to work, without having to adapt the
root=ID to the newly created ticket.