1
0
-1

Does anyone know if it's possible to use the support logs to 

  • view the payload
  • show custom error messages 

Would help in diagnosing issues, understand what's happening so we can refine our processes. 

We’ve been using the debug function in the code, but it would be helpful to include error messages that do not stop the code and let it run through to the end.

Needed for Zendesk and Jira On Prem.

thanks, Sandra

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Sandra

      It is indeed possible to generate and view custom error messages in Exalate for Zendesk and Jira On Premise. You can use the 'debug.error' function to create custom error messages in your script which could further help in diagnosing issues. They could give insights about the values passed in a replica, for instance.

      This function helps to raise an IssueTrackerException error with the value of the field which is not syncing.


      For Example:

      Put this in the incoming sync.

      debug.error("the orignal estimate is replica.'Original Estimate' ${replica.'Original Estimate'}")
      
      



      You can also use log.info() on Jira OP and then the logs will be generated in the log folder in the server Exalate is installed upon.


      Some more documentation: https://docs.exalate.com/docs/debugging-sync-scripts-on-exalate

      https://docs.exalate.com/docs/debughelper-in-script-helpers


      Thank you.

      Kind regards,
      Mathieu Lepoutre

        CommentAdd your comment...