Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1263997 - [RFE] foreman-rake export_tasks shall support exporting a single task
Summary: [RFE] foreman-rake export_tasks shall support exporting a single task
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.1.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 260381 1122832
TreeView+ depends on / blocked
 
Reported: 2015-09-17 09:38 UTC by Peter Vreman
Modified: 2019-09-26 18:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-05 15:21:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Vreman 2015-09-17 09:38:50 UTC
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):


How reproducible:


Steps to Reproduce:
1. Export a single task
2.
3.

Actual results:
All tasks are exports, you need to look in the final .tar.gz to strip out unneeded information

Expected results:
.tar.gz contains only the data of the selected tasks


Additional info:

Comment 1 Ivan Necas 2017-04-05 15:21:08 UTC
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


Note You need to log in before you can comment on or make changes to this bug.