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

Don't pass urgency:0 to taskwarrior 2.5.2 for task modify #142

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

EdwardBetts
Copy link
Contributor

When modifying a task in taskwarrior 2.5.2 it was returning this error:

The 'urgency' attribute does not allow a value of '0'.

The solution is to drop the urgency argument if the value is 0 when calling task modify.

When modifying a task in taskwarrior 2.5.2 it was returning this error:

  The 'urgency' attribute does not allow a value of '0'.

The solution is to drop the urgency argument if the value is 0 when
calling task modify.
@coddingtonbear
Copy link
Collaborator

For what it's worth, I'm fairly sure the urgency field is calculated anyway (and thus immutable) -- we should probably never be sending that in our command.

@bergercookie
Copy link
Contributor

Yeah, I recently stumbled upon the same issue, explicitly removing the urgency key does the job. 👍🏿

Copy link
Contributor

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note test test_annotation_escaping still fail after this, with

The 'urgency' attribute does not allow a value of '0.8'

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

Successfully merging this pull request may close these issues.

None yet

4 participants