Skip to content

Can't change title #47

@JuergenSimon

Description

@JuergenSimon

Hi,

I'm completely new to this and normally never touch python if I can avoid it, so please bear with me. I have a setup where I feed documents straight from a scanner via FTP into paperless, the subdirectories of the upload directory get turned into tags. All documents that are scanned this way have the 'scanned' tag.

I want to name the documents accordingly. Not the filenames, but the title metadata. I have an very simple ruleset and it does not seem to work. I don't understand why:

---
FixScannedDocumentTitles:
  match: "{{ 'scanned' in tag_list }}"
  metadata_postprocessing:
    title: '{{ tag_list[1] }}-{{ document_id }}({{ document_type }})'
---

I see no errors in the logs. What am I overlooking?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions