Project

General

Profile

Custom workflows plugin not create an issue when new project is created

Added by Piotr Sz over 3 years ago

Hello something not working with [[https://www.redmine.org/plugins/redmine_custom_workflows]] plugin this wont create new issue for the same project.

Workflow script executable before saving observable object:

@need_create = true

Workflow script executable after saving observable object

@project_single_id = self.project.project_id
if @need_create
  issue = Issue.create!(
    :author_id => 6,
    :project_id => @project_single_id,
    :tracker_id => 2,
    :subject => "Subtask",
    :description => "Description")
end