문제

While trying the Asana API for task stories I noticed that the server sends back a list of all the stories in time-ordered sequence i.e sorted on the created_at field. The first element in the list is the first story of that task and the last item is the latest story. Is this ordering guaranteed by design? And can this be relied upon in the code? I want to get the latest activity by looking at the last element of the returned list. Documentation has no such information.

도움이 되었습니까?

해결책

You're correct, we order stories by creation time in any situation where you get a set of stories. I'm adding that to the documentation now. Thanks for the catch!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top