note

The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

Syntax

getAllOrganizationIds()

Package

Alias

Pkg Usage

Description

Returns the Ids of all Service Desk organizations.

Returns the Ids of all Service Desk organizations.

Return Type

Number

Returns a number array of organization Ids.

Examples

Example 1

return getAllOrganizationIds();

Result: 11|12|13|14

Example 2

for(number id in getAllOrganizationIds()) {
    runnerLog(getOrganizationNameById(id));
}

Result: "Company A" "Company B" "Company C"

See also

defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock67bc8c8e-2eb5-4ced-b871-32d32323df68ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock507a77cc-9f6a-458c-ab10-74f6687efaccdefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock67bc8c8e-2eb5-4ced-b871-32d32323df68ari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacock507a77cc-9f6a-458c-ab10-74f6687efacc