- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 12:10 AM
I have a need to capture this information for reporting is there anyone who can suggest a method by which I can do so?
Many thanks
Solved! Go to Solution.
- Labels:
-
Analytics and Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 02:58 AM
Hi Angus,
you may need to update your script as below:
(function executeRule(current, previous) {
current.u_first_assigned_to = current.assigned_to;
current.update();
})(current, previous);
If above doesnt work, can you simply check for below: (changing the script to just below 2 lines)
current.u_first_assigned_to = current.assigned_to;
current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 01:55 AM
Thanks for that Miriam that is kind of the path I was going down however it didn't work.
My steps, create new reference field u_first_assigned_to on Sys User and added to Incident form.
Created after BR (Active, Advanced, Insert and Update)
Condition: previous.assigned_to == "" && current.assigned_to != "" && previous.u_first_assigned_to ==""
Script:-
(function executeRule(current, previous) {
current.u_first_assigned_to = current.assigned_to;
})(current, previous);
I've also tried 'When to Run | Filter Conditions left alone and Assigned To changes
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 02:51 AM
I'll take another look at it.
What exactly was it that didn't work for you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 02:53 AM
Thanks, the new field doesn't get populated with anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 02:58 AM
Hi Angus,
you may need to update your script as below:
(function executeRule(current, previous) {
current.u_first_assigned_to = current.assigned_to;
current.update();
})(current, previous);
If above doesnt work, can you simply check for below: (changing the script to just below 2 lines)
current.u_first_assigned_to = current.assigned_to;
current.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2016 03:02 AM
Looks good so far Sumeet.
Many thanks