- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 11:23 PM
Hello All ,
I'm creating an change request using Record Producer and also creating change Tasks so here my challenge is
in the change_task I need to update the Short description from the Variable value and I could not see variable data on change_task so how can I update the short description
my variable is action_ngp with choices start,stop,restart
so I need my short description as VM_+ choice value
can you help me with script and i need to do this in workflow
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 11:27 PM
Write the Following code in the Runscript Activity and hope your Workflow is on change task
table if so write below code
var gr = new GlideRecord('change_request');
gr.addQuery('sys_id',current.parent);
gr.query();
while(gr.next()){
var choices = gr.variables.action_ngp.getDisplayValue();
current.short_description='VM_'+choices;
}
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 11:27 PM
Write the Following code in the Runscript Activity and hope your Workflow is on change task
table if so write below code
var gr = new GlideRecord('change_request');
gr.addQuery('sys_id',current.parent);
gr.query();
while(gr.next()){
var choices = gr.variables.action_ngp.getDisplayValue();
current.short_description='VM_'+choices;
}
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 11:38 PM
@shyamkumar VK Its working, Thanks for the prompt response 🙂