Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task attribute "entry" should be editable #74

Open
abone28 opened this issue May 22, 2020 · 0 comments
Open

Task attribute "entry" should be editable #74

abone28 opened this issue May 22, 2020 · 0 comments

Comments

@abone28
Copy link

abone28 commented May 22, 2020

When I try to assign a new value to entry attribute (task["entry"] = value) tasklib 1.3.0 raises error

File "tasklib/task.py", line 101, in __setitem__
    raise RuntimeError('Field \'%s\' is read-only' % key)
RuntimeError: Field 'entry' is read-only

According to TaskWarrior docs this attribute can be modified

When a task is first created, it is automatically assigned an entry date. This attribute is used to calculate the age of a task. This date is modifiable, should you wish to enter an old task.

TaskWarrior 2.5.1 CLI allows to modify entry attribute:

task 1 modify entry:20200518T180617Z
Modifying task 87 'task1'.
Modified 1 task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant