From 16b60e3e70036be50ef10b29f35879312eea605b Mon Sep 17 00:00:00 2001 From: m-j-hofmann <139861272+m-j-hofmann@users.noreply.github.com> Date: Wed, 5 Nov 2025 07:05:22 +0100 Subject: [PATCH 1/2] add to_note_mention for tasks --- src/albert/resources/tasks.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/albert/resources/tasks.py b/src/albert/resources/tasks.py index 4a0eca72..dad86ea0 100644 --- a/src/albert/resources/tasks.py +++ b/src/albert/resources/tasks.py @@ -227,6 +227,19 @@ class BaseTask(BaseTaggedResource): ) entity_type: TaskEntityType | None = Field(default=None, alias="EntityType") + def to_note_mention(self) -> str: + """Convert the task to a note mention string. + + Returns + ------- + str + The note mention string. + """ + # define formatted string + mention = f'@{self.id[3:]} | {self.name} ' + # return formatted + return mention + class PropertyTask(BaseTask): """ From 6967df6b96268786fe427b28b9b6c26bfaef63d8 Mon Sep 17 00:00:00 2001 From: m-j-hofmann <139861272+m-j-hofmann@users.noreply.github.com> Date: Wed, 5 Nov 2025 07:05:39 +0100 Subject: [PATCH 2/2] Update __init__.py --- src/albert/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/albert/__init__.py b/src/albert/__init__.py index 5607f65a..e21b0dec 100644 --- a/src/albert/__init__.py +++ b/src/albert/__init__.py @@ -4,4 +4,4 @@ __all__ = ["Albert", "AlbertClientCredentials", "AlbertSSOClient"] -__version__ = "1.7.7" +__version__ = "1.7.8"