JS Subactions allow the execution of JS to perform actions within the form/entity on new submission such as Submit when importing or the action is performed.
Select Module in the top left banner then select the appropriate module name link.
Select the Workflows tab, followed by the relevant workflow.
Select the Actions tab, followed by the Action to be customized.
Select the Subactions tab, on the right side of the assignment expression, paste the code below to assign a field value to the total number of days since submitted.
Select the edit Pencil Icon to access the JS editor.
Select OK to store the JS, OK again to save the Action, then Save to save the workflow.
Validate the functionality by performing the action. You should see the request updated based on the script you provided.
How to:Add subtask and line items: