Versions Compared

Key

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

This routine is available starting with Power Scripts 4.5.8.

Syntax

copyBoard(board)

Description

...

Parameter name

Type

Required

Description

board

booleanstring

Yes

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

Return type

string 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.

Warning

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

Code Block
//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.