Modify

Opened 12 years ago

Last modified 3 years ago

#9502 accepted enhancement

set_field_to_value

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: AdvancedTicketWorkflowPlugin
Severity: normal Keywords:
Cc: David Bonnin Trac Release: 0.12

Description

The workflow in our organization knows a 'review_by_architect' state and a 'submit_to_testing'. With both actions leading to these states, our developers set the next owner manually for each ticket. Because both architect and testing each have a single, fixed account, we would greatly benefit from this action

set_field_to_value (TicketWorkflowOpFieldValue) 

    Sets a ticket field to a value specified in trac.ini

    <someaction>.operations = set_field_to_value
    <someaction>.set_field_to_value.field = mycustomfield
    <someaction>.set_field_to_value.value = peter

Attachments (2)

t9951.patch (1.5 KB) - added by Ryan J Ollos 10 years ago.
t9502.py (1.6 KB) - added by Ryan J Ollos 10 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by anonymous

I've come up with an implementation that I would like to share. I have added this code to advancedworkflow/controller.py: t9502.py.

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

comment:2 Changed 12 years ago by anonymous

Type: defectenhancement

comment:3 Changed 10 years ago by Ryan J Ollos

#6921 was closed as a duplicate. The ticket has requested the ability to move a custom ticket field to the workflow section so the user would be forced to fill in a value.

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

Changed 10 years ago by Ryan J Ollos

Attachment: t9951.patch added

comment:4 Changed 10 years ago by Ryan J Ollos

What is needed is the ability to add, delete, append to or remove from a field. The following tickets requested those operations for various fields:

  • #5552 requested the ability to append to the CC field
  • #7771 requested the ability to add keywords (provides a patch)
  • #9251 requested the ability to delete a field (provides a patch).
  • #9951 requested the ability to set the Type field (provides a patch).
  • #10457 requested the ability to set the Version and Milestone fields.

See also trac:#11452.

Changed 10 years ago by Ryan J Ollos

Attachment: t9502.py added

comment:5 Changed 3 years ago by David Bonnin

Cc: David Bonnin added

comment:6 Changed 3 years ago by Ryan J Ollos

Owner: Eli Carter deleted

comment:7 Changed 3 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos
Status: newaccepted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as accepted The owner will remain Ryan J Ollos.

Add Comment


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

 
Note: See TracTickets for help on using tickets.