Custom report to show values #3136
Replies: 2 comments
-
I don't know whether there's a way to do this with reports (I'm not a member of the taskwarrior team). But for custom things like this, I tend to lean on
and get
(for my current taskwarrior database). Or for more custom formatting, you can pipe your export to python. e.g.,
and
|
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for your reply. The export command would help me if I could use it in a way that I can export all values that are set to an UDA. So, if my UDA is 'stk' and in various tasks I've set some people's names, then the desired output would be a list of 'stk' values with the count of how many times it repeats. So, if "Jason" is a value that was set on 3 tasks on 'stk' UDA and "Bob" was set on 5 tasks, the output would be something like this: stk count So, I believe there should be a way (or it might there be a way already) to have something like this (pseudo code):
This is only an example and of course does not work; I'm just trying to clarify what I want to achieve. Thanks again |
Beta Was this translation helpful? Give feedback.
-
Hello community. I've tried Emacs and other tools, but I'm ending up coming back to taskwarrior (there's no place like home/taskwarrior). I'm just too familiar already with TW and I believe it is still the best for my workflow; it simply works and I still have my old configuration saved (which is a plus).
It turns out that I want to get my TW setup even better, so I'm changing the way I used to do stuff on the tags. I'll give an example:
Let's say that I have a task of someone trying to fix the computer, but that depends on a technician on site and the end user was not clear on what is wrong with the computer. I'd enter the task like this:
task add "Fix computer problem" +@John +S_Leila +R_Bob
In my example above:
So far so good
Now, an extra tool I use is TMUX so I can have command line frames around and I would have a small frame somewhere to show me all the tags with the command below:
while true; do clear && task tags; sleep 5;done
What this does in tmux is: clear the frame and insert the command task tags each 5 seconds.
The thing is I have a big frame with lots of tags... I can scroll, no problem, to find the stakeholders (imagine I have 50 stakeholders, 30 people waiting for and 70 requestors, this is insane)
Now, on my new setup, what I'm trying to achieve is generating the same report, but with UDAs. Here's a portion of my configuration file:
uda.req.type=string uda.req.label=Requestor uda.stk.type=string uda.stk.label=Stakeholder uda.wtg.type=string uda.wtg.label=Waiting
So:
With this config, I can use the tags for the contexts as it should be. For example, I have a tag +office that means that this task can only be performed while I'm working at the office, so if I'm working from home I'd filter out that task or setting it to wait until the day 'x' when I'll be at the office. I hope this makes sense.
Now, finally, here's what I'm trying to accomplish.
I know that there is a report that can show the values of UDA attributes, for example, so, if I have these custom priorities below, I can run
"task show uda.priority.values"
to get the values I've defined.uda.priority.values=1,2,3,,5
Let's say that I have some tasks and some Stakeholders (stk) defined already. They are values not predefined in my configuration, but even so I tried to do this to get some results (it failed):
task show uda.stk.values
Before I make my question, let's say that I have 4 tasks created like this:
So, my question (finally) is: "Is there a way to run a report, list or custom report that'll show me all the values of an UDA and the count of repeated values in a way that, running the report supposing that I only have these 3 unfinished tasks above?" The output should be something like this:
Stakeholder Count
Bob 1
Jonas 2
Patrick 1
I hope that question makes sense and also that this is doable somehow... Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions