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 1312823 - [RFE] hammer task list --search option should cover "Action" field
Summary: [RFE] hammer task list --search option should cover "Action" field
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Tasks Plugin
Version: 6.1.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Lukáš Hellebrandt
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-29 10:34 UTC by Kamudini Gazdikova
Modified: 2020-07-16 08:42 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-16 11:55:42 UTC
Target Upstream Version:
Embargoed:
ktordeur: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14650 0 Normal New hammer task list --search option should cover "Action" field. 2020-09-15 14:47:16 UTC
Red Hat Bugzilla 1417130 0 unspecified CLOSED [RFE] Filter Task List on Action 2021-12-10 15:11:18 UTC

Internal Links: 1417130

Comment 1 Bryan Kearney 2016-04-14 16:09:46 UTC
Connecting redmine issue http://projects.theforeman.org/issues/14650 from this bug

Comment 2 Bryan Kearney 2016-04-14 18:02:33 UTC
Upstream bug component is Tasks Plugin

Comment 4 jnikolak 2016-11-05 05:19:15 UTC
Something like this would also be useful.

See states of tasks in running or pending

hammer task list | egrep -i "\| running"
8e2845ce-035e-4f11-bd7b-8a8d3386e1b6 |      |                   | 2016/11/01 15:23:43 |                     | running | pending | Listen on candlepin events    |                                                                                 

--> Currently no option to do otherwise
#######################################
# hammer task list --help
Usage:
    hammer task list [OPTIONS]

Options:
 --by BY                       Field to sort the results on
 --order ORDER                 Sort field and order, e.g. 'name DESC'
 --page PAGE                   Page number, starting at 1
 --per-page PER_PAGE           Number of results per page to return
 --search SEARCH               Search string
 -h, --help                    print help
[root@jnik source]# 
##########################################

Comment 5 Adam Ruzicka 2017-10-09 08:39:30 UTC
(In reply to jnikolak from comment #4)
Searching by task states and results can be done like this:

# hammer task list --search "state = running and result = pending"

Comment 6 Adam Ruzicka 2017-11-30 14:23:17 UTC
We should get this for free when BZ1417130[1] gets fixed. Keeping this one open to track the hammer part of things in case some more changes are needed.

[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1417130


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