Modify

Opened 15 years ago

Closed 8 years ago

Last modified 8 years ago

#5443 closed defect (worksforme)

set_owner_to_previous doesn't work

Reported by: Jonathan Turkanis Owned by: Eli Carter
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 15 years ago by Jonathan Turkanis

Resolution: fixed
Status: newclosed
Summary: set_onwer_to_previous doesn't workset_owner_to_previous doesn't work

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

Last edited 8 years ago by Ryan J Ollos (previous) (diff)

comment:2 Changed 8 years ago by sabaawy

Cc: sabaawy@… added
Resolution: fixed
Status: closedreopened

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 8 years ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 8 years ago by Ryan J Ollos

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 8 years ago by sabaawy

I also tried set_owner_to_component_owner and it didn't work either. I tried `set_owner_to_reporter1 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
Version 1, edited 8 years ago by Ryan J Ollos (previous) (next) (diff)

comment:5 Changed 8 years ago by Ryan J Ollos

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 8 years ago by sabaawy

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

comment:7 Changed 8 years ago by Ryan J Ollos

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 8 years ago by Ryan J Ollos

Resolution: worksforme
Status: reopenedclosed

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

comment:9 Changed 8 years ago by anonymous

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Eli Carter.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.