------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4644/
------------------------------------------------------------------------------
New ticket #4644 by splatter2
For Beanbag, Inc. > Review Board
Status: New
Tags: Priority:Medium, Type:Defect
------------------------------------------------------------------------------
Webhooks custom payload templating not working properly
==============================================================================
# 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}}"
}],
}
```
2. 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}}`
------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.