Developer Portal for YouTrack and Hub Help

LicenseInfo

Information about the current YouTrack license.

const { licenseInfo } = require('@jetbrains/youtrack-scripting-api/license'); console.log('Current YouTrack version is: ' + licenseInfo.youTrackVersion); console.log('The current user count in this YouTrack is: ' + licenseInfo.currentUserCount);

Available since 2025.3.109000

Properties

Name

Type

Description

currentAgentCount

number

The current number of agents in this YouTrack.

currentDiskSpaceMb

number

The current amount of disk space (in megabytes) used by this YouTrack.

currentUserCount

number

The maximum number of users allowed in the instance.

expirationTimestamp

number

The license expiration timestamp in milliseconds since the Unix epoch.

isCloud

boolean

'True' if this YouTrack is a cloud one.

isFree

boolean

Indicates whether the instance is a free instance.

isTrial

boolean

'True' if this YouTrack operates under a trial license.

licenseUsername

string

The license username associated with this YouTrack instance.

maxAgentCount

number

The maximum number of agents that the current license allows for this YouTrack.

maxDiskSpaceMb

number

The maximum amount of disk space (in megabytes) allowed for this YouTrack.

maxUserCount

number

The maximum number of users that the current license allows for this YouTrack.

youTrackVersion

string

The YouTrack version.

04 February 2026