Modify

Opened 4 years ago

Closed 3 years ago

#13774 closed enhancement (fixed)

Add grandchildren tickets to the child ticket section on a ticket

Reported by: ahowell82@… Owned by: Cinc-th
Priority: lowest Component: ChildTicketsPlugin
Severity: minor Keywords:
Cc: Trac Release:

Description

Would it be possible to add grandchildren into the Child Ticket table?

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by ahowell82@…

Possible solution (I know it should be cleaner by I am not the python wizard most of you are):

Update to childtickets.py in function def filter_stream from:

childtickets = [Ticket(self.env, n) for n in
                self.childtickets.get(ticket.id, [])]

# (tempish) fix for #8612 : force sorting by ticket id
childtickets = sorted(childtickets, key=lambda t: t.id)

to:

childtickets = [Ticket(self.env, n) for n in
                self.childtickets.get(ticket.id, [])]

for child in childtickets:
    if not isinstance(child, Ticket):
        continue

    grandChildTickets = self.childtickets.get(child.id,[])

    if len(grandChildTickets) == 0:
        continue
                
    for grandChild in grandChildTickets:
        childtickets.append( Ticket(env, grandChild) )

# (tempish) fix for #8612 : force sorting by ticket id
childtickets = sorted(childtickets, key=lambda t: t.id)

comment:2 Changed 3 years ago by Cinc-th

Owner: changed from Mark Ryan to Cinc-th
Status: newassigned

comment:3 Changed 3 years ago by Cinc-th

In 18118:

ChildTicketsPlugin: show tree of child tickets (child->grandchild->...) with indentation on ticket page instead of just direct childs.

  • Show ticket descriptions
  • Additional parent ticket section if viewing a child ticket.

Refs #13774

comment:4 Changed 3 years ago by Cinc-th

Resolution: fixed
Status: assignedclosed

In 18119:

ChildTicketsPlugin: don't show description for available table headers on the admin page. Descriptions are always shown now.

Closes #13774

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.