Macro to Create Ticket and Post new Comment - Comment Author

2 Comments

  • Jason Littrell

    Hi Dean Kongslie,

    In the create ticket payload, you can add an 'author_id' property to the 'comment' object (check out the Ticket Comments documentation for more info). The 'current_user.id' placeholder should work for the 'author_id' value, assuming the webhook trigger runs when the agent applies the macro and submits the ticket. Here's a sample payload:

    {
    "ticket": {
    "comment": {
    "body": "Something something",
    "author_id": {{current_user.id}}
    },
    ...
    }
    }

    Note: per the Author id documentation, the updater of the ticket will still be the authenticated user, so it could have an impact on business rules and views.

    0
  • Dean Kongslie
    Community Moderator

    Thank you this is very helpful.

    0

Please sign in to leave a comment.

Powered by Zendesk