Edgewall Software

Ticket #7791 (closed defect: fixed)

Opened 2 months ago

Last modified 13 days ago

Don't allow tickets to be reassigned to completed/closed milestones

Reported by: mongoose643 Owned by: rblank
Priority: normal Milestone: 0.11.3
Component: roadmap Version: 0.10.4
Severity: normal Keywords:
Cc:

Description

When on the "Edit Milestone" page and you are ready to reassign a leftover tickets to a new milestone you see a list of every milestone every created.

This list should be reduced to open milestones and not include past milestones that have been marked as complete.

Attachments

7791-milestone-grouping-r7763.patch (9.0 KB) - added by rblank 4 weeks ago.
Patch against 0.11-stable grouping milestones on milestone edit and milestone delete pages

Change History

Changed 2 months ago by rblank

  • owner set to rblank
  • milestone changed from 0.11.2 to 0.11.3

Sorry, no more tickets for 0.11.2.

Changed 2 months ago by cboos

We could eventually use the same logic here as in the ticket view and edit pages, i.e. show only the open milestones, except for TICKET_ADMIN (see #1440).

Changed 4 weeks ago by rblank

Patch against 0.11-stable grouping milestones on milestone edit and milestone delete pages

Changed 4 weeks ago by rblank

The patch above groups the milestones in the select boxes of the milestone edit and delete pages, in the same way as the ticket edit page. It only shows completed milestones if the user has TICKET_ADMIN permission.

I'm not sure about how to check this, however. Currently, I use the following:

'TICKET_ADMIN' in req.perm(milestone.resource)

That is, I check for TICKET_ADMIN on the milestone. On the ticket edit page, the check is on the ticket itself, but this doesn't apply here, as there are several tickets to be modified, and checking the permission on all of them seems overkill. Should I rather do the following?

'TICKET_ADMIN' in req.perm

That's what the admin module does.

Changed 13 days ago by rblank

  • status changed from new to closed
  • resolution set to fixed
  • component changed from admin/web to roadmap

Fixed in [7772]. I finally used the following to check for TICKET_ADMIN permission:

'TICKET_ADMIN' in req.perm

Add/Change #7791 (Don't allow tickets to be reassigned to completed/closed milestones)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from rblank. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.