how can use filter on child level object | Community
Skip to main content
February 24, 2025
Question

how can use filter on child level object

  • February 24, 2025
  • 1 reply
  • 483 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

skyehansen
Community Advisor
Community Advisor
February 24, 2025

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?)

February 25, 2025

Thanks for reply...

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


skyehansen
Community Advisor
Community Advisor
February 25, 2025

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?