Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Devarajn29 opened this issue Oct 26, 2023 · 4 comments
Open

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

Devarajn29 opened this issue Oct 26, 2023 · 4 comments

Comments

@Devarajn29
Copy link

Devarajn29 commented Oct 26, 2023

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 #Issue:0x00007f91aaa8ea60

@picman
Copy link
Collaborator

picman commented Oct 26, 2023

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

@picman
Copy link
Collaborator

picman commented Oct 26, 2023

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

@Devarajn29
Copy link
Author

Devarajn29 commented Oct 26, 2023

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

@picman
Copy link
Collaborator

picman commented Oct 26, 2023

You can't access them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants