Modify

Opened 7 years ago

Closed 10 months ago

Last modified 10 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

Description

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
requestinfo.name = request feedback
requestinfo.operations = set_owner
requestinfo.permissions = TICKET_MODIFY
provideinfo = infoneeded -> assigned
provideinfo.name = 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 10 months ago by rjollos (previous) (diff)

comment:2 Changed 10 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.

Thanks,

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

comment:3 Changed 10 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 10 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:

[ticket-workflow]
accept = new -> assigned
accept.name = accept this ticket
accept.operations = set_owner_to_self
accept.permissions = TICKET_CREATE
assign = assigned,new -> assigned
assign.name = 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
reject.name = needs more work
reject.operations = set_owner_to_component_owner
reject.permissions = TICKET_CREATE
reopen = closed -> assigned
reopen.name = re-open ticket
reopen.operations = set_owner
reopen.permissions = REOPEN_TICKETS
sendtoreview = assigned -> review
sendtoreview.name = submit for review
sendtoreview.operations = set_owner
sendtoreview.permissions = TICKET_CREATE
Last edited 10 months ago by rjollos (previous) (diff)

comment:5 Changed 10 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:

{{{#!ini
[content goes here]
}}}

comment:6 Changed 10 months ago by sabaawy

[extra-permissions]
_assign_tickets = ASSIGN_TICKETS
_close_tickets = CLOSE_TICKETS
_reopen_tickets = REOPEN_TICKETS

comment:7 Changed 10 months ago by rjollos

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

[ticket]
workflow = TicketWorkflowOpOwnerPrevious, TicketWorkflowOpOwnerComponent, ConfigurableTicketWorkflow

What do you have in [ticket] workflow?

comment:8 Changed 10 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 10 months ago by anonymous

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

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.