#13523 closed enhancement (fixed)
Use PageTickets macro outside of Wiki pages
Reported by: | Marcel Gestewitz | Owned by: | lucid |
---|---|---|---|
Priority: | normal | Component: | PageTicketsMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
This useful macro is also of interest within ticket description text.
For me it works to apply the regular expression to formatter.source
instead of finding own WikiPage
and applying it on its text:
tickets = PageTicketsMacro.tickets_re.findall(formatter.source)
Attachments (0)
Change History (5)
comment:1 Changed 6 years ago by
comment:2 follow-up: 3 Changed 6 years ago by
Interesting. Is formatter.source
always the entire wikipage text?
comment:3 Changed 6 years ago by
Replying to anonymous:
Interesting. Is
formatter.source
always the entire wikipage text?
I've tested this before ticket creation and I did not found any restriction. But I am not sure if I missed something.
Similar to parsing the Wiki text, macros are not expanded.
For example no tickets will be found if you use a TicketQuery
somewhere on Wiki page.
For this case I would like to enter further tickets directly in PageTickets
macro (see #13525).
Hello
For me it is a very attractive proposal to make the
PageTicket
macro usable not only in wiki-pages but also in tickets. It perfectly matches my question on thetrac-users@googlegroups.com
mailing list:On 11.12.2018 22:22, Clemens wrote:
Marcel's proposal would overcome this restriction. This would be great.
P.S.
I also want to highlight the new MentionedTicketsPlugin.