We've encountered an issue exporting this macro. Please try exporting this page again later.
There are two helper routines available to ease your work with persistent variables. These routines allow you to set or retrieve the value of a persistent variable from a script that is not in the context of the issue or just to retrieve a global variable:
Filter by label (Content by label)
showLabels
false
title
Routines
excerptType
simple
cql
label = "persvar" and space = currentSpace ( )
Values are treated as strings. For the above example:
Code Block
language
java
string globalCounterVar = getPersistentVar("counter");
number test_one_counter = getPersistentVar("TEST-1", "counter"); //notice the implicit cast! values are treated like strings, though!
Although useful, persistent variables come with a small performance penalty. Don't overuse them!
There's no way to delete a persistent var (other than direct SQL) at the moment. Think hard if you really need them.
See More
Child pages (Children Display)
page
New Copy - Persistent Variables
We've encountered an issue exporting this macro. Please try exporting this page again later.