Skip to end of metadata
Go to start of metadata

Syntax

createfilter(filterName, filterDescription, filterQuery, ownerName)

Description

Creates a filter with name, description, search query, and owner.

Parameters

Parameter name

Type

Required

Description

filterName

string

Yes

The filter name

filterDescription stringNoThe filter description
filterQuerystringYesThe JQL search string used by the filter
ownerNamestringYesThe username or of the filter owner

Return type

number

Returns the id of the created filter.

Example

number filterId = createfilter("Filter for Agile project", "Filter for Agile project", "project = \"Agile Project\" AND statusCategory not in (Done)", "admin");


See also