Skip to content

Limitation with scope Parameter in Jobs Endpoint #3728

@Nikolsonn

Description

@Nikolsonn

Description

Recently, our project started using Gitbeaker, and we’ve encountered a limitation with one of the endpoints.
GET /projects/:id/pipelines/:pipeline_id/jobs
According to the documentation, the scope parameter should accept either a string or an array of strings. However, in the current implementation, it only works with a single string value.

This restriction impacts efficiency—especially when filtering jobs by multiple statuses. In my case, I need to filter by 5 different statuses to find jobs that did not pass (don't have status success), so I can re-run them. Supporting an array for scope would significantly reduce the number of requests needed in such scenarios.

I’m happy to look into implementing a fix, but I wanted to open a discussion first to confirm the best approach.

Thanks in advance for your time and feedback!

Checklist

  • I have checked that this is not a duplicate issue.
  • I have read the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questiontype:typesAdding or enhancing typescript types

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions