Comments (1)
I found out how to to this thanks to help from another user!
For example, if you want to set the assignee whenever an issue's status is changed, your code would look like this:
before_save
@need_create = status_id_changed? && !new_record?
after_save
if @need_create
assigned_to = User.find_by_login('testuser2')
end
Hope this helps someone else!
from redmine_custom_workflows.
Related Issues (20)
- get the last value and last update value in custom field HOT 3
- Mail sending from custom workflows HOT 2
- Help needed with custom_field date type HOT 4
- Send mail to the author when an issue is created HOT 3
- Help! HOT 2
- Assign anotther tracker to quto created subtask HOT 2
- Project custom Field
- parent_done_ratio float round(2)
- Get users by role not functional ? HOT 1
- Is the v2.1.0 plug-in compatible with Redmine 5.1.x? HOT 1
- Integration with repository code HOT 4
- Switch status on issue update by assignee
- Help: how to add a change issue if milestone's status has changed
- Send email to address in custom field? HOT 9
- Add All Project Members as Watchers HOT 2
- Check if a date is between two other dates HOT 8
- Remove user from groups when locked HOT 2
- sidekiq with redmine_custom_workflow HOT 6
- Check if version.due_date has changed HOT 5
- Integration with Custom Workflows Plugin for Enhanced Feature Implementation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redmine_custom_workflows.