Modify ↓
Opened 16 years ago
Last modified 4 years ago
#3402 new enhancement
set_field_to_owner?
Reported by: | J Evan S | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | AdvancedTicketWorkflowPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
How about a set_field_to_owner to complement set_owner_to_field?
fix = inprogress -> needs_review fix.operations = set_field_to_owner fix.set_field_to_owner = fixedby . . . fail = in_testing -> failed fail.operations = set_owner_to_field fail.set_owner_to_field = fixedby
Attachments (0)
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Status: | new → assigned |
---|
The need to hide the field hints at a deeper problem in Trac core which I need to dig into. I'm inclined to postpone adding this feature here until I figure out a good solution for the underlying issue in core, but it is very clearly a good idea.
comment:3 Changed 4 years ago by
Status: | assigned → new |
---|
comment:4 Changed 4 years ago by
Owner: | Eli Carter deleted |
---|
Note: See
TracTickets for help on using
tickets.
I've achieved this in my local installation by adding the following code to controller.py:
To get it to work properly, I'm also hiding the field in question using the BlackMagicTicketTweaksPlugin; without that, I was getting complaints about the field being set twice when a user submitted the form.