---
title: "Get all jobs for a chosen repository"
canonical: "https://support.appfire.com/space/JENK/150896666/Get%20all%20jobs%20for%20a%20chosen%20repository"
format: markdown
---
> Macro (aura-html)

To get all Jenkins jobs for a chosen repository, use the following REST endpoint:

#### Sample endpoint

```
<BB_URL>/rest/jenkins/latest/pipelines/jobs?repositoryId=<REPO_ID>&filter=<FILTERS>&order=<ORDER>
```

Where:

- **REPO_ID** - the id of your repository for which you want to get jobs
- **FILTERS **- must contain all titles of the returned jobs
- **ORDER **- how the jobs are displayed in the response - **name_asc **(ascending names)**, name_desc **(descending names)**,  date_asc **(ascending date), or **date_desc **(descending date)

#### Sample response:

```json
{
  "numInstances": <Number of Jenkins instances for this repo>,
  "jobs": {
    "<URL of the first instance>": [
      {
        "jobId": "<Job name>",
        "instanceId": <Instance id>,
        "jobUrl": "<Relative path to the job>"
      },
      ...
    ],
    ...
  }
}
```