Expand my Community achievements bar.

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.

how can use filter on child level object

Avatar

Level 1

HI Team,

How can we use filter on child level object using WF api call.

 

like project have task collection and need a filter on tasks:milestoneID

I am using below code:

/attask/api/v19.0/PROJ/search?ID=XXXXX&fields=tasks:milestoneID&tasks:milestoneID_Mod=notnull

result is i m getting all the tasks list filter is not applying. 

what is wrong on above code.

5 Replies

Avatar

Community Advisor

I think maybe just go with

_____________&tasks:milestoneID_Mod=notnull

if you're looking to pull projects where tasks have milestones.

 

If you're looking to pull specific task data, might be easier for you to do /task/search?projectID=XXXXX&milestoneID_Mod=notnull&fields=* (why are you being constrained to a project search?)

Avatar

Level 1

Thanks for reply...

My requirement is to pull all projects details along with its associated tasks and where milestoneID is not null.


Avatar

Community Advisor

sorry I don't understand your goal. Are you being asked to pull in tasks where milestoneID is not null, or ALL tasks in the project?

Avatar

Level 1

Project having collection of tasks and I want to pull all tasks where milestoneID is not null under project.



Avatar

Community Advisor

Can you just do 

/attask/api/v19.0/task/search?projectID=XXXXX&milestoneID_Mod=notnull&fields=project:*