Skip to content

limit with ids ergo: how to change top N tasks from a report #3593

Answered by felixschurk
allgreed asked this question in Q&A
Discussion options

You must be logged in to vote

Hei, I did not found a way of making it work with the ids command.
However what you could do, but also more on the postprocessing site is having a custom report that only outputs the ids you want with the specific limit and then pipe that into a modification.

If you add something like:

report.treport.columns           = id
report.treport.filter            = status:pending -WAITING limit:4
report.treport.sort            = urgency-
report.treport.context	          = 0

Now if you run your report and turn of extra verbosity with rc.verbose:0 you should get something like that:

ID
--
18
19
20
21

Now cutting out the first header lines you could add a tail -n +4 command to the pipe. So calling

$…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by allgreed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants