work note do not display variables values.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 10:36 AM
I am writing run script to display work notes which hold variables value if stage is planning in release management.
var applications = current.variables.applications;
var business_application_bai=current.variables.business_application_bai;
var name = current.variables.name.toString();
var names = current.variables.names.toString();
var version = current.variables.application_version.toString();
current.work_notes=applications+'|'+business_application_bai+'|'+name+'|'+names;
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2024 07:54 PM
You have this logic in business rule? Can you please provide more details
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2024 10:04 PM
ok gliderecord of release table and check if current record is available like for example RITM
var ritm = new GlideRecord('sc_req_item');
if (ritm.get(current.sys_id)) {
var variableValue = ritm.variables.variable_name;
ritm.work_notes = 'The variable value is: ' + variableValue;
ritm.update();
}