This could be as simple as:
Set Field [ Jobs::MagicKey ; "" ]
Set Field [ tasks|magicKey::_fkJobID ; Jobs::__pkJobID ]
This would require setting a MagicKey relationship between the two tables:
Jobs::MagicKey = Tasks|MagicKey::__pkTaskID
Where __pkTaskID is either an auto-entered serial number or auto-entered get ( UUID ) with allow creation enabled for Tasks|magicKey.
Other methods set a variable to the job ID. Switch layouts to a layout based on tasks, creates the new record and sets the new task record's job ID to the value of the variable.