redmine_custom_workflows/test/fixtures/custom_workflows.yml
2023-10-06 09:33:55 +02:00

245 lines
7.8 KiB
YAML

---
custom_workflows_001:
id: 1
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_save: ''
name: 'Issue CW test'
description: 'Testing workflow'
position: 1
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'issue'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:error] = 'Issue cannot be deleted'\n
return false"
after_destroy : ''
custom_workflows_002:
id: 2
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_save: ''
name: 'Version CW test'
description: 'Testing workflow'
position: 2
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'version'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: ''
after_destroy : ''
custom_workflows_003:
id: 3
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_save: ''
name: 'User CW test'
description: 'Testing workflow'
position: 3
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'user'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: ''
after_destroy : ''
custom_workflows_004:
id: 4
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_save: ''
name: 'Project CW test'
description: 'Testing workflow'
position: 4
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'project'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: ''
after_destroy : ''
custom_workflows_005:
id: 5
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_save: ''
name: 'Group CW test'
description: 'Testing workflow'
position: 5
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'group'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: ''
after_destroy : ''
custom_workflows_006:
id: 6
before_save: ''
after_save: ''
name: 'Attachment CW test'
description: 'Testing workflow'
position: 6
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'attachment'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_destroy : ''
custom_workflows_007:
id: 7
before_save: ''
after_save: ''
name: 'Issue relation CW test'
description: 'Testing workflow'
position: 7
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'issue_relation'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_destroy : ''
custom_workflows_008:
id: 8
before_save: ''
after_save: ''
name: 'Time entry CW test'
description: 'Testing workflow'
position: 8
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'time_entry'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_destroy : ''
custom_workflows_009:
id: 9
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]\n
Rails.logger.info \">>> #{self.class.name} #{self.id }#{self.custom_workflow_env[:remote_ip]}\""
after_save: ''
name: 'Wiki content CW test'
description: 'Testing workflow'
position: 9
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'wiki_content'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]\n
Rails.logger.info \">>> #{self.class.name} #{self.id }#{self.custom_workflow_env[:remote_ip]}\""
after_destroy : ''
custom_workflows_010:
id: 10
before_save: "self.custom_workflow_messages[:notice] = 'Custom workflow'"
after_save: ''
name: 'Wiki page CW test'
description: 'Testing workflow'
position: 10
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2018-12-20 14:01:27 +02:00
updated_at: 2018-12-20 14:01:27 +02:00
active: 1
observable: 'wiki_page'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]\n
Rails.logger.info \">>> #{self.class.name} #{self.id }#{self.custom_workflow_env[:remote_ip]}\""
after_destroy: ''
custom_workflows_011:
id: 11
before_save: ''
after_save: ''
name: 'Member CW test'
description: 'Testing workflow'
position: 11
is_for_all: 0
author: 'karel.picman@kontron.com'
created_at: 2023-10-06 09:29:27 +02:00
updated_at: 2023-10-06 09:29:27 +02:00
active: 1
observable: 'member'
shared_code: NULL
before_add: NULL
after_add: NULL
before_remove: NULL
after_remove: NULL
before_destroy: "self.custom_workflow_messages[:notice] = 'Custom workflow'\n
self.custom_workflow_messages[:warning] = self.custom_workflow_env[:remote_ip]"
after_destroy: ''