Skip to end of banner
Go to start of banner

copyBoard

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available starting with Power Scripts 4.5.8.

Syntax

copyBoard(board)

Description

Create a copy of the provided board.

Parameters

Parameter name

Type

Required

Description

board

string

Yes

The name or the id of the board to be copied.

Return type

boolean (until 4.8.0.8, including)

True if the board was successfully copied.

number (from 4.8.0.9 and up)

The id of the newly created board, so you can modify it further, or null number (NaN) if the board cannot be copied.

Version 4.8.0.9 breaks backward compatibility, but we feel it's an improvement rather than a problem. Please modify the scripts accordingly.

Example

//pre 4.8.0.9
boolean isCopied = copyBoard("DEMO");
// post 4.8.0.9 (incl.)
number newBoardId = copyBoard("DEMO");

Result: The result will create a copy of "DEMO" board named "Copy of DEMO" and isCopied will return true.

  • No labels