Red Hat Bugzilla – Bug 1263997
[RFE] foreman-rake export_tasks shall support exporting a single task
Last modified: 2017-04-05 11:21:08 EDT
Description of problem:
Currently foreman-rake export_tasks supports only ALL tasks or all non-successful tasks.
This can be very slow when many tasks are in the system. It also means that mean non-relevant (and disattracting) tasks are included for Bug reporting.
Please add a possibility to filter on a list of specified tasks:
foreman-rake export_tasks tasks=8533bdf0-51be-4d7b-a2bb-c9eec7066a44,e335026f-2f00-4045-9971-e63cd0320f51
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Export a single task
All tasks are exports, you need to look in the final .tar.gz to strip out unneeded information
.tar.gz contains only the data of the selected tasks
This is possible in 6.2.x releases, using TASK_SEARCH field, example:
foreman-rake foreman_tasks:export_tasks TASK_SEARCH='id = 667250a0-6d98-4fb4-800b-4a2c97da79de'
See foreman-rake -D foreman_tasks:export_tasks for more details