Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 07:31 AM
In rm_scrum_task if any worknote added, that worknote should populate in story(rm_story) as a worknote when rm_scrum_task state is complete.
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 07:46 AM
@Deepika43 Create a onBefore Update business rule on rm_scrum_task table as follows.
Here is the script.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var lastWorknote = current.work_notes.getJournalEntry(1);
var storyRec = current.parent.getRefRecord();
storyRec.work_notes=lastWorknote+'';
storyRec.update();
})(current, previous);
Hope this helps.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 07:46 AM
@Deepika43 Create a onBefore Update business rule on rm_scrum_task table as follows.
Here is the script.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var lastWorknote = current.work_notes.getJournalEntry(1);
var storyRec = current.parent.getRefRecord();
storyRec.work_notes=lastWorknote+'';
storyRec.update();
})(current, previous);
Hope this helps.