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

get Post call value before_save using params[:id] #326

Open Devarajn29 opened 8 months ago

Devarajn29 commented 8 months ago

I want to get params value from the post call before the issue is saved. can anyone help me?

Workflow script executable before saving observable object contains error: undefined local variable or method `params' for #

picman commented 8 months ago

Post the code you have entered into "Before save event".

picman commented 8 months ago

In general, those scripts have access to models only and params are available in controllers. So, you cant get to them.

Devarajn29 commented 8 months ago

Thanks for explanation. How to access the values from Post call into the before_save custom workflow.

picman commented 8 months ago

You can't access them.