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" 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): """