How to update ctask once created
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 08:46 PM
Hi
How to update description of Change request - CTASKs after it created.
For ex: I have couple of CTASKs got created & need to update the description based on short_description.
Appreciate your inputs. Thanks
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 11:29 PM
actually I need to update all the CTASK descriptions, if it matches to short description i.e.; MACD Devices:
for ex: Ctask1, Ctask2, Ctask3...
var text1 = "MACD Devices: xyz hello";
var str = current.getValue('short_description');
if (str.indexOf("text1") > -1) {
current.setValue('description', text);
}
Is this correct or missing something..