HabitRPG / habitica-zapier

6 stars 5 forks source link

Mathematical priority #11

Open Majed6 opened 4 years ago

Majed6 commented 4 years ago

I would love to have the priority field take a mathematical equation and calculate what the priority / difficulty should be.

For example when I add a to-do to read an article via the integration, I would like it to calculate the following equation words count ( provided by another integration) / 1000 in the priority field.

IMHO, this adds a much more clever way of determining the priority of a task.

paglias commented 4 years ago

Sounds good to me, @Alys what do you think?

Alys commented 4 years ago

Yes, definitely. It's referring to some code from this PR that I removed in this commit for the reasons described there.

Now that I'm a lot more familiar with zapier, I'm happy to have that added. It's definitely an exciting feature!

@Majed6 Is that still the code you want for this feature? If so, I'll merge it from that commit in a day or two. Otherwise, you're welcome to do a new PR for this if you wish.

Majed6 commented 4 years ago

I'll do another PR with multiple Test cases.

Thank you