Opened 7 years ago

Closed 11 months ago

Last modified 11 months ago

#5443 closed defect (worksforme)

set_owner_to_previous doesn't work

Reported by: turkanis Owned by: retracile
Priority: high Component: AdvancedTicketWorkflowPlugin
Severity: normal Keywords:
Cc: sabaawy@… Trac Release: 0.11


When I perform an action that should set the ticket owner to the previous owner, the owner is not updated. Here are the two workflow actions involved:

# Feedback
requestinfo = assigned,accepted,reopened -> infoneeded = request feedback
requestinfo.operations = set_owner
requestinfo.permissions = TICKET_MODIFY
provideinfo = infoneeded -> assigned = provide feedback
provideinfo.operations = set_owner_to_previous
provideinfo.permissions = TICKET_MODIFY

Attachments (0)

Change History (9)

comment:1 Changed 7 years ago by turkanis

  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from set_onwer_to_previous doesn't work to set_owner_to_previous doesn't work

I realized I had a typo in my [ticket] section. Sorry for the noise.

Last edited 11 months ago by rjollos (previous) (diff)

comment:2 Changed 11 months ago by sabaawy

  • Cc sabaawy@… added
  • Resolution fixed deleted
  • Status changed from closed to reopened

I know this is a 6-year old ticket but I am having the same issue now. set_owner_to_previous doesn't work - any help is appreciated.


Last edited 11 months ago by rjollos (previous) (diff)

comment:3 Changed 11 months ago by rjollos

You need to provide some information about your install if you'd like help. Which Trac version? Which plugin version? What is in your [ticket-workflow] section?

comment:4 Changed 11 months ago by sabaawy

I also tried set_owner_to_component_owner and it didn't work either. I tried set_owner_to_reporter and it worked just fine.

I am using

and my ticket workflow section is:

accept = new -> assigned = accept this ticket
accept.operations = set_owner_to_self
accept.permissions = TICKET_CREATE
assign = assigned,new -> assigned = assign ticket
assign.operations = set_owner
assign.permissions = ASSIGN_TICKETS
close = assigned,new,review -> closed
close.operations = set_resolution
close.permissions = CLOSE_TICKETS
leave = * -> *
leave.default = 1
leave.operations = leave_status
reject = review -> assigned = needs more work
reject.operations = set_owner_to_component_owner
reject.permissions = TICKET_CREATE
reopen = closed -> assigned = re-open ticket
reopen.operations = set_owner
reopen.permissions = REOPEN_TICKETS
sendtoreview = assigned -> review = submit for review
sendtoreview.operations = set_owner
sendtoreview.permissions = TICKET_CREATE
Last edited 11 months ago by rjollos (previous) (diff)

comment:5 Changed 11 months ago by rjollos

Please also post your [extra-permission] section (TracIni#extra-permissions-section) in a codeblock, like I did editing your comment above. Example:

[content goes here]

comment:6 Changed 11 months ago by sabaawy

_assign_tickets = ASSIGN_TICKETS
_close_tickets = CLOSE_TICKETS
_reopen_tickets = REOPEN_TICKETS

comment:7 Changed 11 months ago by rjollos

set_owner_to_previous and set_owner_to_component_owner work fine for me on a new installation with:

workflow = TicketWorkflowOpOwnerPrevious, TicketWorkflowOpOwnerComponent, ConfigurableTicketWorkflow

What do you have in [ticket] workflow?

comment:8 Changed 11 months ago by rjollos

  • Resolution set to worksforme
  • Status changed from reopened to closed

If you have additional issues, please ask on the trac:MailingList.

comment:9 Changed 11 months ago by anonymous

That's what I was missing - It works now, thanks

Add Comment

Modify Ticket

as closed The owner will remain retracile.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.