How to GET/POST task predecessor values?
How does one access task "Predecessor" values visible in Gantt chart via API?
I need to be able to POST tasks with defined dependencies and lag time without having to manually add the lag in the Gantt chart.
I am using the POST/tasks/{taskId}/dependencies method to create the dependencies, but can't find any reference how to add the lag time, such as "34FS +30d".
Hey Doug Allinger, there is a way to modify dependencies through the API mentioned in the documentation here. Let me know if this helped, and if you need any further assistance, I can raise a Support ticket for you if you'd like!
Hi, Hugh.
Thanks for the response. I am using that method to get and create dependencies, but it doesn't provide a means to set a date offset associated with the relationType.
So the first task in the image I attached (Phase 2) would be not problem, since it is a successor to item #2 with relationType
FinishToStart". But to set the dependency for the other items, such as *Gap Remediation Month 1", the dependency is "34FS +30d", to start 30 days after the finish of item #34.
I am looking for a method to specify the +30d, for example.
A query of tasks for item #2 returns, followed by query of task dependencies. Neither includes the "Predecessor" offset value.
Hey Doug Allinger, I've raised a Support ticket for you. Someone should be in contact with you soon!
Hi Doug,
in case you solved your issue, would you please let us know how? I am also working with API and task dependency creation and could benefit from this extra opportunity.
Many Thanks
mdr
Hey Andreas Wastl! I've just checked with the team: at the moment the lead and lag feature is not supported by our API methods, and you would need to manually add +30d in the Predecessor column within the Workspace. Hope this helps!
mdr
Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover
Lisa Wrike Team member Become a Wrike expert with Wrike Discover