Timeline component setup

task brazil Updated Sep 10, 2026 7 min read timeline-component-uib-setup.md
Raw file servicenow.com

Timeline shows different activities in chronological order spread over a set time range. In a case record, agents can see a time line view of case activity. In CMDB, you can see different events that occur for a configuration item over a period of time.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for Timeline that differentiates it from other components in the content tree.

    A descriptive label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "timeline-content-tree.png"] Alt text: Shows the timeline component in the UI Builder content tree

  2. Select the Timeline component using one of these methods:

    • Click anywhere within the component on the page.
    • Select the label you created for your component in the content tree. The configuration options appear in the panel on the right.

    [Omitted image "timeline-properties.png"] Alt text: Shows a portion of the configurable properties for the timeline component in the config tab

Parent Topic:UIB Setup Information

Timeline component properties

Configure the appearance and time range of your Timeline with these properties.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Properties

Label [property]

Description

Compact view[isCompactView]

Displays the timeline on one line without the legend and title.Default: false

Formatted start date[formattedStartDate]

Formatted string of the minimum date that can be displayed in the timeline.

Case – Usually the date/time the case was opened.

CI – Usually the date/time the CI was installed.

Default: 2019-01-01 05:00:00

Formatted end date[formattedEndDate]

Formatted string of the maximum date that can be displayed in the timeline.

Case – Usually the date/time the case was closed.

CI – Usually either the current time (if the CI is still operating) or the date/time the CI was uninstalled.

Default: 2020-06-01 05:00:00

Formatted display start date[formattedDisplayStartDate]

Formatted string of an optional start date that can be displayed on the timeline.

For example, for a CI, activities only in the last two or four weeks might be the most useful information to display. You can set this property to display the most useful start date for a range.

Default: 2019-06-17 09:00:00

Formatted display end date[formattedDisplayEndDate]

Formatted string of an optional end date that can be displayed on the timeline.

For example, for a CI, activities only in the last two or four weeks might be the most useful information to display. You can set this property to display the most useful start date for a range.

Default: 2019-12-14 09:00:00

Locale[locale]

Language code string, such as 'ja' or 'de'.Default: en

Event data[eventData]

The activities to display on the timeline. Case - Usually when the customer or agent adds comments.

CI – Usually the events or outages that have happened on a CI.

Items in the array:

  • name
  • icon
  • iconHref
  • color
  • label
  • labelPlural
  • events

Range data[rangeData]

Array that defines the ranges to display on the timeline bar. For a case, this is usually the changes in the case state.Items in the array:

  • name
  • color
  • label
  • ranges

Display popover[displayPopover]

Controls how to display details for a point on the timeline. Set to true to display a popover when the timeline is clicked. Set to false to display a tooltip when the user hovers on the timeline.When set to true the Display popover macroponent property appears, enabling you to enter the component you want to appear in the popover.

Default: false

Display popover macroponent[popoverMacroponent]

Adds a macroponent that renders inside the popover. Select from macroponent definitions in the sys_ux_macroponent table. This property is available when the Display popover property is set to true.

Hide padding[hidePadding]

Hides the padding for the timeline component.Default: false

Menu bar position[menuBarPosition]

Determines the position of the menu bar. The menu bar has the zoom in and zoom out buttons.Choices are:

  • Top right
  • Bottom right
  • Bottom left

Default: Top right

Enable markers[enableMarkers]

Displays markers in the component.Review the marker's configuration specified in the Markers configuration field when enabling markers.

Markers configuration[markersConfig]

The configuration of the markers in the component.Items in the array:

  • icon
  • color
  • markerType
  • markerTimestamps
  • datePickerConfiguration

Show close button[showCloseButton]

Displays the close button. The position of this button is fixed (top right).Default: false

Label [property]

Description

Label[label]

Title to display at the top of the timeline.Default: Timeline

Label heading level[labelHeadingLevel]

Defines the HTML <hx> heading element used to render the label.Choices are 1-6:

Default: 3

Label style[labelStyle]

Header text style.Choices are:

  • header-primary
  • header-secondary
  • header-tertiary
  • title-primary
  • title-secondary
  • title-tertiary

Default: title-tertiary

Label [property]

Description

Hide pan and zoom[hidePanZoom]

Hides the pan and zoom buttons from the timeline display.Default: false

Min. zoom spread[minZoomSpread]

The minimum display range allowed for the zoom-in action.

Choices are:

  • Y=Year
  • M=Month
  • D=Day
  • H=Hour
  • M=Minute
  • S=Second
  • MS=Millisecond

Default: Day

Hide now button[hideNow]

Hides the NOW button in the timeline display. The NOW button resets the timeline to the default state that existed on page load.Default: true

Label [property]

Description

Legend title[legendTitle]

Title in the legend used for events.Default: Legend

Legend event title[legendEventTitle]

Event title that displays in the legend drop-down list.Default: Timeline Indicators

Legend range title[legendRangeTitle

Range title that displays in the legend drop-down list.Default: Timeline Ranges

Hide legend toggle[hideToggle][

Hides the legend toggle in the timeline display.Default: false

Label [property]

Description

Show empty state[isEmpty]

Shows an empty state indication.Default: false

Show error state[isError]

Shows an error state indication.Default: false

Show loading state[isLoading]

Shows a loading state indication.Default: false

## Timeline component events

Select event handlers to configure the action (event) provided with the Timeline component.

The Events tab shows the events used by the Timeline component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Timeline actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

[Omitted image "timeliine-component-events.png"] Alt text: Shows the events available for the timeline component

Event descriptions

Event

Description

Data selected

Triggers when the user selects an event, range, or marker on the timeline.Payload contains the following depending upon the type of data:

  • Event (selectedEvents):
    • eventName
    • timestamp
    • description
    • data
  • Range (selectedRanges):
    • rangeName
    • start
    • end
    • description
    • data
  • Marker: timestamp

Popover link clicked

Triggers when the user selects a link in the popover.Payload contains popoverLinkPayload

Initialized

Triggers when timeline is initialized.Payload:

  • startingTimestamp
  • endingTimestamp

Range changed

Triggers when the user changes the display range.Payload:

  • startingTimestamp
  • endingTimestamp

Legend item updated

Triggers when an event or range item is toggled in the Show legend dropdown.Payload:

  • dataType
  • data

Close button clicked

Triggers when the user selects the close button.There is no payload.

Marker added

Triggers when the user adds a marker in the timeline.Payload contains timestamp.

Marker cleared

Triggers when the user clears or removes a marker from the timeline.Payload contains timestamp.

Marker timestamp invalid

Triggers when marker timestamps are not valid.Payload contains timestamp.

Search documentation
Search document titles and file paths on the brazil branch