Skip to content

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.

4 participants