Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Tomas_V_cz
in reply to: Tomas_V_cz

I already solved it myself... If anyone is interested, the code is as follows:

var material = "";
var zmena = "";

if (hasGlobalParameter("job-notes")) {
    var notes = getGlobalParameter("job-notes"); 
    if (notes) { 
      var lines = String(notes).split("\n"); 
      material = lines[0].replace(/^\s+|\s+$/gm,'');
      zmena = lines[1].replace(/^\s+|\s+$/gm,'');
    }
}

writeBlock("*-material:" + material);
writeBlock("*-zmena:" + zmena);