Edgewall Software
Modify

Opened 17 years ago

Closed 12 years ago

#6899 closed defect (worksforme)

Cannot reassign to null

Reported by: trac-ja@… Owned by: Christian Boos
Priority: low Milestone:
Component: ticket system Version: devel
Severity: normal Keywords:
Cc: trac-ja@…, haircut@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When I reassign a ticket with [ticket] restricted_owner=true, it contains a empty entry on the head of list on 0.10. But 0.11 is not contain that.

Do you change spec of this part?

Attachments (0)

Change History (10)

comment:1 by Eli Carter, 17 years ago

Owner: changed from Jonas Borgström to Eli Carter

comment:2 by michael.greene@…, 17 years ago

I'm having the same problem.

comment:3 by Eli Carter, 17 years ago

Status: newassigned

Similar issue with assigning a default owner of a component.

comment:4 by Eli Carter, 17 years ago

The default owner of a component is a separate issue: #6912.

I'm not certain we want to change this; with the configurable workflow in 0.11, there is set_owner and also del_owner. I don't see how deleting the owner and moving the ticket to the 'assigned' state makes sense. If there is a need for this, I think we'll have to add a set_or_del_owner action. But I suspect it would be better solved as having two separate actions available.

What workflow are you using, and what are you trying to do?

in reply to:  4 comment:5 by trac-ja@…, 17 years ago

Replying to ecarter:

I'm not certain we want to change this

OK, I think that all tickets must have a owner, too. I just ask you a current spec. I shuld use MailingList, sorry.

A simple workaround:

  1. Create nobody user (realuser or entry of SESSION table).
  2. Set all component's default_owner to nobody.

:-)

comment:6 by Eli Carter, 17 years ago

Resolution: wontfix
Status: assignedclosed

If there is a use-case where this is needed, reopen the ticket. Otherwise, I don't think we need a blank entry in the assign-to list.

comment:7 by anonymous, 13 years ago

Milestone: 0.11
Resolution: wontfix
Status: closedreopened

I think this would be useful.

What to do if the ticket owner leaves the team?

comment:8 by Adam Monsen <haircut@…>, 12 years ago

Cc: haircut@… added

comment:9 by Christian Boos, 12 years ago

Milestone: next-stable-1.0.x
Owner: changed from Eli Carter to Christian Boos
Status: reopenednew

This could be fixed by adding a new operation clear_owner:

[ticket-workflow]
...
unassign = new,assigned,reopened -> new
unassign.operations = clear_owner

With:

  • trac/ticket/default_workflow.py

     
    281281                     for x in owners],
    282282                    id=id, name=id)))
    283283                hints.append(_("The owner will be changed from "
    284                                "%(current_owner)s",
     284                               "%(current_owner)s to selected user",
    285285                               current_owner=current_owner))
    286         if 'set_owner_to_self' in operations and \
     286        elif 'set_owner_to_self' in operations and \
    287287                ticket._old.get('owner', ticket['owner']) != req.authname:
    288288            hints.append(_("The owner will be changed from %(current_owner)s "
    289289                           "to %(authname)s", current_owner=current_owner,
    290290                           authname=req.authname))
     291        elif 'clear_owner' in operations:
     292            hints.append(_("The owner will be cleared"))
    291293        if 'set_resolution' in operations:
    292294            if this_action.has_key('set_resolution'):
    293295                resolutions = [x.strip() for x in
     
    358360                updated['owner'] = newowner
    359361            elif operation == 'set_owner_to_self':
    360362                updated['owner'] = req.authname
     363            elif operation == 'clear_owner':
     364                updated['owner'] = ''
    361365            elif operation == 'del_resolution':
    362366                updated['resolution'] = ''
    363367            elif operation == 'set_resolution':

(the first two changes are unrelated to the present feature request and will be committed first)

Maybe even "The ticket will have no owner" instead of "The owner will be cleared" ;-)

comment:10 by Christian Boos, 12 years ago

Milestone: next-stable-1.0.x
Resolution: worksforme
Status: newclosed

Argh, too much code there ;-)

There's already a del_owner operation!

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.