Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi All, I Am Trying To Get All Pipeline Tasks Or Task Ids From A Specific Project. The Project In The Details Of One Of The Pipeline Tasks Is Defined As

Hi all, I am trying to get all pipeline tasks or task ids from a specific project. The project in the details of one of the pipeline tasks is defined as "<project_name>/.pipelines/<pipeline_name>" . I get:
Task.query_tasks(project_name="<project_name>/.pipelines/<pipeline_name>") -> []
Task.get_tasks(project_name="<project_name>/.pipelines/<pipeline_name>") -> []
APIClient.client.projects.get_all(name="<project_name>/.pipelines/<pipeline_name>") -> empty Project list
but
Task.query_tasks(task_name="<pipeline_name>") -> list of task ids
Task.get_tasks(task_name="<pipeline_name>") -> list of tasks
APIClient.client.projects.get_all(id=["id of <project_name>/.pipelines/<pipeline_name>"]) -> Project with name="<project_name>/.pipelines/<pipeline_name>"
Why can't I get the tasks of this pipeline project or even the project by name? Are pipelines not handled like projects? Is there a way to get all pipeline tasks in a project?

  
  
Posted 9 months ago
Votes Newest

Answers 2


Hi @<1679661969365274624:profile|UnevenSquirrel80> ! Pipeline projects are hidden. You can try to pass task_filter={"search_hidden": True, "_allow_extra_fields_": True} to the query_tasks function to fetch the tasks from hidden projects

  
  
Posted 9 months ago

Nice, works! Thank you @<1523701435869433856:profile|SmugDolphin23>

  
  
Posted 9 months ago
600 Views
2 Answers
9 months ago
9 months ago
Tags
Similar posts