Edgewall Software
Modify

Opened 12 years ago

Closed 8 years ago

Last modified 8 years ago

#10735 closed enhancement (fixed)

create a new ticket starting from an existing ticket comment

Reported by: Christian Boos Owned by: Christian Boos
Priority: normal Milestone: 1.3.2
Component: ticket system Version: 0.13dev
Severity: normal Keywords: ticketclone jinja2
Cc: Branch:
Release Notes:

The tracopt.ticket.clone optional component makes it possible to clone a ticket starting from one of its comment, which can be useful to create "sub-tickets".

API Changes:
Internal Changes:

Description

The idea is much the same as the one for TicketClone, but instead of "cloning" the whole ticket in intent (as materialized by copying the ticket's description over), we would refine a specific ticket comment (by taking the ticket's comment as the new ticket description).

This can be handy to avoid derailing a ticket into handling too many things at once, so when something is identified and that clearly needs a dedicated treatment, making a new ticket out of it is just a click away, and you'll have the new ticket starting off with the same fields as the "parent" ticket (yes, the same UI could lead to the creation of subtickets once we have that).

Interestingly, the current source:trunk/tracopt/ticket/clone.py@11079 feature is implemented as an extension using Genshi (ITemplateStreamFilter). The present extension achieves a similar result but relies on JavaScript only. For now, only the "create from comment" is done via JavaScript (well, CoffeeScript actually, as this is better suited for embedding little HTML snippets), but the "clone ticket" action itself could be ported to js as well.

This could even be generalized and provide a sound basis for #3255.

Related branches

Attachments (0)

Change History (9)

comment:1 by Christian Boos, 12 years ago

Rebased branch on latest #10012 changes, for using the latest styling for the '+' symbol button: repos:cboos.git:clone-from-comment-t10012-r11112

comment:2 by Ryan J Ollos, 10 years ago

Milestone: next-dev-1.1.xnext-major-releases

Retargetting tickets to narrow focus for milestone:1.2. Please move the ticket back to milestone:next-dev-1.1.x if you intend to resolve it by milestone:1.2.

comment:3 by Ryan J Ollos, 9 years ago

Owner: Christian Boos removed

comment:4 by Christian Boos, 9 years ago

Keywords: jinja2 added
Milestone: next-major-releasesnext-dev-1.3.x

Reusing this as the basis for ITemplateStreamFilter replacement.

comment:5 by Christian Boos, 9 years ago

Owner: set to Christian Boos
Priority: highnormal
Status: newassigned

Branch rebased on jinja2, in cboos.git@clone-from-comment-jinja2.

Resuming normal work in jinja2 branch by taking advantage of what was done here to get rid of the ITemplateStreamFilter provider in the TicketCloneButton component (see cboos.git@34e04dd7).

Now something similar needs to be done for the ticket deleter.

comment:6 by Christian Boos, 8 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Implemented part of r15436.

comment:7 by Ryan J Ollos, 8 years ago

Milestone: next-dev-1.3.x1.3.2
Release Notes: modified (diff)

comment:8 by Ryan J Ollos, 8 years ago

The clone links here direct to https://newticket/.

in reply to:  8 comment:9 by Christian Boos, 8 years ago

Replying to Ryan J Ollos:

The clone links here direct to https://newticket/.

Thanks for spotting, fixed in r15515. I really need to get started on Selenium… (#11988)

Last edited 8 years ago by Christian Boos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.