# Type Alias ListJobsData

ListJobsData: {
allWorkspaces?: boolean;
args?: string;
createdBy?: string;
createdOrStartedAfter?: string;
createdOrStartedBefore?: string;
hasNullParent?: boolean;
isFlowStep?: boolean;
isNotSchedule?: boolean;
isSkipped?: boolean;
jobKinds?: string;
label?: string;
page?: number;
parentJob?: string;
perPage?: number;
result?: string;
running?: boolean;
schedulePath?: string;
scheduledForBeforeNow?: boolean;
scriptHash?: string;
scriptPathExact?: string;
scriptPathStart?: string;
startedAfter?: string;
startedBefore?: string;
success?: boolean;
tag?: string;
workspace: string;
}

#### Type declaration

- ##### `Optional` allWorkspaces?: boolean

  get jobs from all workspaces (only valid if request come from the `admins` workspace)

- ##### `Optional` args?: string

  filter on jobs containing those args as a json subset (@> in postgres)

- ##### `Optional` createdBy?: string

  mask to filter exact matching user creator

- ##### `Optional` createdOrStartedAfter?: string

  filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp

- ##### `Optional` createdOrStartedBefore?: string

  filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp

- ##### `Optional` hasNullParent?: boolean

  has null parent

- ##### `Optional` isFlowStep?: boolean

  is the job a flow step

- ##### `Optional` isNotSchedule?: boolean

  is not a scheduled job

- ##### `Optional` isSkipped?: boolean

  is the job skipped

- ##### `Optional` jobKinds?: string

  filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,

- ##### `Optional` label?: string

  mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')

- ##### `Optional` page?: number

  which page to return (start at 1, default 1)

- ##### `Optional` parentJob?: string

  The parent job that is at the origin and responsible for the execution of this script if any

- ##### `Optional` perPage?: number

  number of items to return for a given page (default 30, max 100)

- ##### `Optional` result?: string

  filter on jobs containing those result as a json subset (@> in postgres)

- ##### `Optional` running?: boolean

  filter on running jobs

- ##### `Optional` schedulePath?: string

  mask to filter by schedule path

- ##### `Optional` scheduledForBeforeNow?: boolean

  filter on jobs scheduled_for before now (hence waitinf for a worker)

- ##### `Optional` scriptHash?: string

  mask to filter exact matching path

- ##### `Optional` scriptPathExact?: string

  mask to filter exact matching path

- ##### `Optional` scriptPathStart?: string

  mask to filter matching starting path

- ##### `Optional` startedAfter?: string

  filter on started after (exclusive) timestamp

- ##### `Optional` startedBefore?: string

  filter on started before (inclusive) timestamp

- ##### `Optional` success?: boolean

  filter on successful jobs

- ##### `Optional` tag?: string

  filter on jobs with a given tag/worker group

- ##### workspace: string

- Defined in src/types.gen.ts:3803