Search
-
Re: V7 - Custom Task - Analyst comment log
Works for us for Incident: incident.AppliesToTroubleTicket.push({ "ActionType": "AnalystComment", "EnteredBy": session.user.Name, "Title": "Analyst Comment", "IsPrivate": true, "EnteredDate": new Date().toISOString().split(".")[0], "LastModified": new Date().toISOString().split(".")[0], "Description": "private",… -
V7 - Custom Task - Analyst comment log
Hi We just upgrade to V7 and noticed our custom tasks which will update the action log stopped working. I used this code before - in V5: /*var newActionLog = { EnteredBy: session.user.Name, Title: localization.Analyst + " " + localization.Comment, IsPrivate: this.isPrivate, EnteredDate: new Date().toISOString(),… -
Re: V7 - Custom Task - Analyst comment log
Sorry - I only managed to fix this for one task, like this: var newActionLog = { Description: this.get("actionLogComment"), DescriptionDisplay: this.get("actionLogComment"), EnteredBy: session.user.Name, EnteredDate: new Date().toISOString().split(".")[0], LastModified: new Date().toISOString().split(".")[0], Title:… -
Re: V7 - Custom Task - Analyst comment log
Can you paste the entire customization? Tough to tell what is going on otherwise. Another thing that stands out is that "AppliesToWorkItem" is an array, so elements should be pushed to it. The way its written above, the entire Action Log would be replaced with the single entry and it might not be liking that. Something… -
Re: V7 - Custom Task - Analyst comment log
We just updated our test system to 7.2 and ran into this problem. I tried replacing with Olena's code, but it's not working either. Here's an example of a task we have that marks the incident "Pending Affected User Reply" and should also add a comment to the action log. The status change works, but nothing shows up in the… -
Re: V7 - Custom Task - Analyst comment log
Thanks, Nick! I tried that and it's not working. I'm so close--I think I have the entire thing working other than the "Resolved" icon showing up. Here's how I've done it. When I use "ActionType":"AnalystComment", the status changes, but then nothing gets placed in the action log. Any ideas? This is the last piece that's… -
Re: V7 - Custom Task - Analyst comment log
Thanks, Nick--I'm happy to see a familiar face! Your code definitely helped--the cancel incident is fully working on 7.2. Reverse engineering it to do other tasks, I'm able to change the status to what I'd like it to be, and I'm tweaking what it's posting to the action log. Here's my updated action log code--it's working,…