Page MenuHomePhabricator

How can I get tasks in one milestone of one object?
Closed, InvalidPublic

Description

U know, I face a problem is that I want get the tasks of a milestone. Then maniphest.query API can't constraints the date, so I can't use this API to get the tasks in range date. But I also can't get result from maniphest.search. Because I can't get milestone name in constraints(projects). when I use a object name. it can work , but when I use milestone name , it doesn't work. Does this API have this function to get milestone tasks?

Event Timeline

e.g. this is a number1 milestone in Use to test object

pasted_file (332×738 px, 27 KB)

then I use maniphest.search API to get tasks

pasted_file (638×711 px, 51 KB)

oh,I'm very sorry. I do a wrong job. manifest.search API can get tasks by milestone. the key phids in constraints support two methods to set. one way is to use project name(this doesn't work for milestone). other way is to use project phids(this work for milestone). I always use project name to set this key, so I can't get the right result. This task can be closed. I am sorry again.