anteo / redmine_custom_workflows

Allows to create custom workflows for Redmine
http://www.redmine.org/plugins/custom-workflows
GNU General Public License v2.0
178 stars 72 forks source link

Set custom filed only when issue is created, not changed #317

Closed vomus closed 1 year ago

vomus commented 1 year ago

Hi! I have a custom field for an issue and need to set it to a generated value only when the issue is first created. I created such a script

icf = IssueCustomField.find_by_name('Issue polycy')
self.custom_field_values = { icf.id => Time.now.strftime('Policy.%d%m%H%M%S-%y')  }

but it runs also when the issue is commented on. How does one limit the runtime?

picman commented 1 year ago

No support for Russians here.