Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

createDashboardcreatefilter(filterName, filterDescription, filterQuery, ownerName)

Description

Excerpt

Creates a dashboard filter with name, owner and descriptiondescription, search query, and owner.

Parameters

owner

Parameter name

Type

Required

Description

dashboardNamefilterName

string

Yes

The dashboard filter name

filterDescriptionstringNoThe filter description
filterQuerystringYesAn username or key of the dashboard ownerdescriptionThe JQL search string used by the filter
ownerNamestringNoYesThe dashboard descriptionusername or of the filter owner

Return type

number

Returns the id of the created dashboardfilter.

Example

Code Block
number dashboardIdfilterId = createDashboard("dashboardcreatefilter("Filter for Agile project", "Filter for Agile project", "project = \"Agile Project\" AND statusCategory not in (Done)", "admin");


See also

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel = "board_routine"