Attach forms in start action


When a ticket is created for a team in todo4teams, the team's "start action" is executed on the server.

Sometimes, it's desirable for some teams to fill out a form when editing the ticket. One way to do this is to attach a form to the team's start script.

helper.addMetaData(78);

To prevent multiple versions of a form from being attached, use the following code:

if(task.getMetaDataById(78)==null)

helper.addMetaData(78);

In this case, the code first checks if the form with ID 78 is already attached. Only if it is not yet present it will be attached.