Hi,
I'm trying to automate a few actions for our users. I have a rollup summary field that counts the amount of active task. If the amount of active tasks equals 1 then I want to run a custom action when the last active task is marked as complete.
On a task level users use a custom action to mark their tasks as complete (for additional information). At the end of the task I want to conditionally check when the amount of active task equals 1, run a different custom action. This part works fine. But when the if-statement reaches the else part it keeps processing the request.
Console log output:
Uncaught DOMException: Failed to execute 'open' on 'Window': Unable to open a window with invalid URL 'http:'.
I only want to run a custom action when the expression is true, i want to stay on the same page when the expression is not true.
Custom action information:
-
CA part: Success (Optional)
-
Selected: Open URL (HTTP/HTTPS in a new window/tab)
- Code:
{ if($ParentProject.C_numberofactivetasks = 1, GetCustomActionUrl( 'Review project', GetRuntimeParameter($ParentProject) ), null ) }
How can the expected result be achieved?