[GH-ISSUE #305] Add extra conditions to automates #241

Open
opened 2026-02-25 21:31:31 +03:00 by kerem · 1 comment
Owner

Originally created by @CWempe on GitHub (Feb 13, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/305

Originally assigned to: @ciur on GitHub.

Is your feature request related to a problem? Please describe.
I want to add metadata or tags to a document.
But the matching would be improved it the automate was only applied to documents with a specific tag or another criteria.

Describe the solution you'd like
Add conditions like "only for documents with these tags:" or "only for this file type:".

Describe alternatives you've considered

Additional context
A possible use case would be to automatically add the amount of a receipt as a metadata.

  1. Receipts get tagged like shown in the Video Demo. (e.g. Lidl)
  2. Use a regex automate like suggested here to get the amount and save it as meta data.

I think getting the amount via RegEx would result in many false positives it it was applied to all documents.
But If you can define a specific RegEx just for Lidl receipts and another for Aldi receipts it might work.

Originally created by @CWempe on GitHub (Feb 13, 2021). Original GitHub issue: https://github.com/ciur/papermerge/issues/305 Originally assigned to: @ciur on GitHub. **Is your feature request related to a problem? Please describe.** I want to add [metadata ](https://github.com/ciur/papermerge/issues/212) or tags to a document. But the matching would be improved it the automate was only applied to documents with a specific tag or another criteria. **Describe the solution you'd like** Add conditions like "only for documents with these tags:" or "only for this file type:". **Describe alternatives you've considered** - **Additional context** A possible use case would be to automatically add the amount of a receipt as a metadata. 1. Receipts get tagged like shown in the Video Demo. (e.g. Lidl) 2. Use a regex automate like suggested [here](https://github.com/ciur/papermerge/issues/212) to get the amount and save it as meta data. I think getting the amount via RegEx would result in many false positives it it was applied to all documents. But If you can define a specific RegEx just for Lidl receipts and another for Aldi receipts it might work.
Author
Owner

@jhueppauff commented on GitHub (Jun 5, 2022):

Great would be also a condition like "at least x times".
Sometimes you have like 5-6 keywords but not always every keyword might be detected or present.
4 out of 6 Keywords might still be able to identify the document

<!-- gh-comment-id:1146779201 --> @jhueppauff commented on GitHub (Jun 5, 2022): Great would be also a condition like "at least x times". Sometimes you have like 5-6 keywords but not always every keyword might be detected or present. 4 out of 6 Keywords might still be able to identify the document
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/papermerge#241
No description provided.