Complex JSON in webhook body

2 Comentários

  • Dan Nolan

    Yes. It sounds like what you want to do is format the comments better, individually, which you can do by iterating over each one with a for loop. I can't really test it (so very easily could be syntax typos) but it should be something like:

    {"ticket": {
    {% for comment in ticket.comments %} "Comment": "{{comment.value}}"
    {% endfor %}
    }
    }

    I actually just found an article too that goes more into it, and seems like you've got it already but for anyone else looking to do something similar, here's the placeholders reference

    1
  • Stefan Dao

    Thanks Dan! I tried to use the Liquid markup earlier but probably messed up the syntax so I just assumed it didn't work. Thanks for the help

    0

Por favor, entrar para comentar.

Powered by Zendesk