Update xMatters Engage record updates to Incident record

Not Yet Reviewed

Hi Guys ,

 

We are using xMatters application v-5.3.2 . We have a requirement to copy the worknotes from xMatters engage record to incident work logs. Please help me 

 

Thanks

0

Comments

1 comment
Date Votes

Please sign in to leave a comment.

  • Hey Kushal!

        Do you want to actually copy the work notes into the incident, or would you just like to make them easier to access? I ask because we've found that people ask for this from time to time, then back the change out because it can clutter up the incident work notes. 

    So an alternative would be to add the Engage Records as a related list at the bottom of the incident. Our install doc has some details here.

    Otherwise, something like this (not tested!) on an after update business rule would probably work:

    // Get the parent incident record
    var inc = new GlideRecord( 'incident' );
    inc.get( current.parent_incident );

    // Grab the last work note entry from the engage record and add it to the incident
    inc.work_notes = current.work_notes.getJournalEntry(1);

    // Update. Profit.
    inc.update();

    Let me know your thoughts. 
    Happy Monday!
        --- Travis

     

     

    0

Didn't find what you were looking for?

New post