[PATCH] root=self option to automatically refer to current ticket when used within a ticket
|Reported by:||bof||Owned by:||ChrisNelson|
This patch enables a special value for the root=ID macro option, written as 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.
Using 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.
Change History (7)
Changed 3 years ago by bof
comment:1 in reply to: ↑ description Changed 3 years ago by ChrisNelson
- Status changed from new to assigned