Choose project to apply filter to through REST API

Hi!

I try to retrieve a list of items from a filter using the REST API endpoint /filters/{filterId}/results. The filter is defined as being public (available to all projects) and applicable to the current project.

The API call returns always the results for the project currently active in the Web UI's Project Explorer.

Is there any way to choose the project, to which the filter shall be applied, through the REST API?

Thanks,
Marcus

Comments

  • Jan Kastning
    Jan Kastning Member Posts: 32

    This can be done via the parameter "project":

    BR
    Jan

  • MarcusF
    MarcusF Member Posts: 2

    Thank you! Actually, I've been close to that. Unfortunately I used 'projectId' as key instead of 'project' which resulted in an (from my point of view) rather misleading error message: 'This filter does not have a specific project ID, so you must enter one".
    Again, thank you, for point me to the solution.

    -Marcus