[GH-ISSUE #1426] Allow templating in the Priority field #1003

Closed
opened 2026-05-07 00:29:29 +02:00 by BreizhHardware · 1 comment

Originally created by @seantomburke on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1426

💡 Idea

I can use inline templating in with the GET method in the message query param and the title query param. I would also like to use the inline templating to set the priority field. For example, if my payload has an error field or status field, I would like to use that to set the priority of the message. Currently when I do this with the priority field, I get a 400 error, and the docs specify inline templating is only available for the message field.

💻 Target components
Should be added to ntfy server

GET request method in the Query Params for Priority. Example: https://ntfy.com/topic?priority={{if eq .status "Error"}}5{{else}}3{{end}}

Originally created by @seantomburke on GitHub (Aug 18, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1426 <!-- Before you submit, consider asking on Discord/Matrix instead. You'll usually get an answer sooner, and there are more people there to help! - Discord: https://discord.gg/cT7ECsZj9w - Matrix: https://matrix.to/#/#ntfy:matrix.org / https://matrix.to/#/#ntfy-space:matrix.org --> :bulb: **Idea** <!-- Share your thoughts; try to be detailed if you can --> I can use inline templating in with the GET method in the `message` query param and the `title` query param. I would also like to use the inline templating to set the priority field. For example, if my payload has an error field or status field, I would like to use that to set the priority of the message. Currently when I do this with the priority field, I get a 400 error, and the docs specify inline templating is only available for the message field. :computer: **Target components** Should be added to `ntfy server` GET request method in the Query Params for Priority. Example: `https://ntfy.com/topic?priority={{if eq .status "Error"}}5{{else}}3{{end}}`
BreizhHardware 2026-05-07 00:29:29 +02:00
Author
Owner

@binwiederhier commented on GitHub (Feb 4, 2026):

Done in github.com/binwiederhier/ntfy@570b188a88

<!-- gh-comment-id:3848860797 --> @binwiederhier commented on GitHub (Feb 4, 2026): Done in https://github.com/binwiederhier/ntfy/commit/570b188a88f1d6ced7922b992e61a3b90a3937f5
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1003
No description provided.