Heya,
I am not sure if this is a bug or intended for some technical reason. I am writing a tool to set job dependencies and the final lines of the code are as follows:
RepositoryUtils.PendJob(job)
job.SetJobDependencyIDs(Id_list)
If I run the functions separately, I can correctly update the job dependency list however once I pend the job the list is cleared.
If I pend the job and then set the dependencies this works as expected.
However, no matter the order of the above functions, if they are in the same script the job dependency list does NOT update (even with sleep functions to delay the dependency change)!!!
Can someone point me in the right direction please?