Javascript User Scripts

ReqEdit Online Documentation

Javascript User Scripts

1 min read
last updated: 07/25/2023

ReqEdit User Script Editor

API v.1

Variables

rowread/writethe current row or each row
linksreadthe links of the current row
hasChildrenreadtrue/false if the row has children or not
globalsread/writeglobal context can hold variables that can be used for each row
Javascript Interface

Functions

log(variable)display the contents of the variable to the output
Javascript Interface

Globals example

The following code will increment “i” on each row but first it needs to be initialized

if(!globals.i) 
    globals.i = 1;
else
    globals.i++;

log(globals.i)

will output

1
2
3
4
5