Bugs go to engineering
Send bug reports to a channel of their own.
For a support or feedback form, so the people who fix things hear about bug reports and everyone else is left in peace.
Rules come with a team plan. A rule can alert a channel (a group of people, listed under Channels in the console's sidebar) or one person.
Make it in the console#
- Sign in to the console at nowlark.com/org, choose New form under Forms to make a form just for bug reports, and copy its code.
- Before you paste it on your bug report page, find the line with
name="kind"and changevalue="inquiry"tovalue="bug". This hidden line tells Nowlark that every message from this form is a bug report. - Choose Rules in the sidebar, then under Start from a template, choose Bugs go to engineering.
- Under Do, in Tell, choose who should hear it: your engineering channel, or one person, such as whoever fixes the bugs.
- Look at Try it beside the rule: a dry run on your latest messages, each with what this rule would do to it. Nothing is sent.
- Choose Create rule. It joins the bottom of the list and applies from the next message; drag it higher if it should win over a rule above it.
What happens#
Every message from the bug report form alerts the engineering channel instead of the form's usual channel.
Rules are checked from the top, and only the first that fits is used. A message no rule matches alerts its form's usual channel, the one chosen under Send alerts to when the form was made.
No team yet? See what a team gets.
Or with the API#
For developers: the same rule, saved in one call to the team API by a team admin (Authentication names the key it needs). Put in your team's and channel's ids from the console. A rule with no form reads every form. Every field is in Routing rules.
curl -X POST \
https://nowlark.com/v1/teams/team_…/rules \
-H "Authorization: Bearer nla_…" \
-H 'Content-Type: application/json' \
-d '{
"name": "Bugs go to engineering",
"conditions": [
[
{
"field": "kind",
"op": "is",
"value": "bug"
}
]
],
"actions": [
{"do": "push", "channel": "chn_…"}
]
}'