Modify

Opened 3 years ago

Last modified 4 months ago

#9502 new enhancement

set_field_to_value

Reported by: anonymous Owned by: retracile
Priority: normal Component: AdvancedTicketWorkflowPlugin
Severity: normal Keywords:
Cc: 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 rjollos 4 months ago.
t9502.py (1.6 KB) - added by rjollos 4 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 3 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 4 months ago by rjollos (previous) (diff)

comment:2 Changed 3 years ago by anonymous

  • Type changed from defect to enhancement

comment:3 Changed 4 months ago by rjollos

#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 4 months ago by rjollos (previous) (diff)

Changed 4 months ago by rjollos

comment:4 Changed 4 months ago by rjollos

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 4 months ago by rjollos

Add Comment

Modify Ticket

Action
as new The owner will remain retracile.
Author


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

 
Note: See TracTickets for help on using tickets.