Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Subticket to ChildTickets

34 views
Skip to first unread message

Daniel Antequera

unread,
Nov 13, 2024, 2:13:30 AM11/13/24
to Trac Users
Hi, I have a trac project that uses subtickets, and I want to change it to ChildTicketsPlugin, from what I have seen, subtickets stores the data in the subtickets table like this:
   parent | child
   10 | 11

And ChildTicketsPlugin stores them in ticket_custom like this:
   ticket | name | value
   11 parent #10

The problem is that some tickets have multiple parents, and I don't know how, or even if it is possible, to configure this in the ticket_custom table.

I have tried to do it like this:
   ticket | name | value
   11 parent #10,#9

But it only shows the first parent, not the second one.

Jun Omae

unread,
Nov 13, 2024, 2:45:36 AM11/13/24
to trac-...@googlegroups.com, dantequ...@gmail.com
Hi,
Try to use space instead of comma for multiple parents.
See https://trac-hacks.org/browser/childticketsplugin/trunk/childtickets/web_ui.py?marks=55-57,68-70#L47

--
Jun Omae <jun...@gmail.com> (大前 潤)

Daniel Antequera

unread,
Nov 13, 2024, 3:50:11 AM11/13/24
to Trac Users
I have tried that, and the changes are applied, in the parent field of the ticket, both partents appear, but in the dropdown of the plugin that shows the parents only the first one appears, in this image you can see it:

Captura de pantalla 2024-11-13 091858.png

Jun Omae

unread,
Nov 13, 2024, 4:27:10 AM11/13/24
to trac-...@googlegroups.com
I just tried the plugin. It seems to work fine on fresh Trac environment (Trac 1.6).


On 2024/11/13 17:50, Daniel Antequera wrote:
I have tried that, and the changes are applied, in the parent field of the ticket, both partents appear, but in the dropdown of the plugin that shows the parents only the first one appears, in this image you can see it:

On Wednesday, November 13, 2024 at 8:45:36 AM UTC+1 Jun Omae wrote:
Hi,

On 2024/11/13 16:13, Daniel Antequera wrote:
> Hi, I have a trac project that uses subtickets, and I want to change it to ChildTicketsPlugin, from what I have seen, subtickets stores the data in the subtickets table like this:
>    parent | child
>    10 | 11
>
> And ChildTicketsPlugin stores them in ticket_custom like this:
>    ticket | name | value
>    11 parent #10
>
> The problem is that some tickets have multiple parents, and I don't know how, or even if it is possible, to configure this in the ticket_custom table.
>
> I have tried to do it like this:
>    ticket | name | value
>    11 parent #10,#9
>
> But it only shows the first parent, not the second one.

Try to use space instead of comma for multiple parents.
See https://trac-hacks.org/browser/childticketsplugin/trunk/childtickets/web_ui.py?marks=55-57,68-70#L47

--
Jun Omae <jun...@gmail.com> (大前 潤)

Daniel Antequera

unread,
Nov 13, 2024, 5:08:23 AM11/13/24
to Trac Users
I have restarted apache and it is working, thank you very much for your help.
Reply all
Reply to author
Forward
0 new messages