I’m trying to create a trigger that checks that there is at least one project member linked to a project before the project can be saved, but I’m having trouble with this. Does anyone have any input? Grateful for any help. // Peter
Alles Antwoorden (3)
Is it even possible in the UI to create a project with project members? Doesn't the project have to be saved first before you can add project members to it?
Hi Peter, it is possible to achieve what you want with two triggers:
- Trigger on before saving project: Look for number of project members, if 0 - open up a dialog box with a person list option. Set the selected person as a state value
- Trigger on after saving project: if you've provided a state value, add this person as a project member.
I created a prototype in my demo environment, and it works as you ask.
Hello Simen, sounds good!
Is there any possiblity for me to see what you have created?