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

Assign anotther tracker to quto created subtask #332

Open fabianocruzdf opened 6 months ago

fabianocruzdf commented 6 months ago

Hello!

I'm using the following script to create new subtasks, but, depending the father task tracker, I need to set another tracker to suto created subtask. Here's is a example:

If tracker is feature then autocreated subtask must have a suport tracker type.

My script:

if @var //populated on before_save issue = Issue.new issue.tracker_id = tracker_id issue.project_id = project_id // <-- Here's my problem, i have to set another id, but everything i put here is ignored, and subtask created has the same tracker_id of father task. issue.subject = 'Sub-issue' issue.status_id = status_id issue.priority_id = priority_id issue.author_id = author_id issue.parent_id = id issue.save end

can anyone help me with this?

fabianocruzdf commented 6 months ago

@picman help!

picman commented 6 months ago

Has the given project the tracker enabled? If not, you can't assign it to its issues.