4644: Webhooks custom payload templating not working properly

splatter2

What version are you running?

3.0.2

What's the URL of the page containing the problem?

/admin/dn/notification/webhooktarget/add

What steps will reproduce the problem?

  1. Create Webhook using the following custom payload (based on ReviewBoard documentation example) :
{
    "attachments": [{
        "fallback": "Review Request {{review_request.display_id}} published: {{review_request.summary|escapejs}}",
        "pretext": "Review Request {{review_request.display_id}} published",
        "title": "{{review_request.summary|escapejs}}",
        "title_url": "https://reviewboard.example.com/{{review_request.get_absolute_url}}"
    }],
}

  1. Do something to trigger the webhook (publish new review, etc.).

What is the expected output? What do you see instead?

Web hook should publish information (including review id).
The review id ({{review_request.display_id}}) and url ({{review_request.get_absolute_url}}) are missing.

What operating system are you using? What browser?

N/A

Please provide any additional information below.

Other template fields that don't work are: {{review_request.owner}}