{"action":"created","issue":{"url":"https://api.github.com/repos/python-bugzilla/python-bugzilla/issues/71","repository_url":"https://api.github.com/repos/python-bugzilla/python-bugzilla","labels_url":"https://api.github.com/repos/python-bugzilla/python-bugzilla/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/python-bugzilla/python-bugzilla/issues/71/comments","events_url":"https://api.github.com/repos/python-bugzilla/python-bugzilla/issues/71/events","html_url":"https://github.com/python-bugzilla/python-bugzilla/issues/71","id":315862375,"number":71,"title":"[RFE] Query for needsinfo flag with specific requestee's email","user":{"login":"omaciel","id":53362,"avatar_url":"https://avatars2.githubusercontent.com/u/53362?v=4","gravatar_id":"","url":"https://api.github.com/users/omaciel","html_url":"https://github.com/omaciel","followers_url":"https://api.github.com/users/omaciel/followers","following_url":"https://api.github.com/users/omaciel/following{/other_user}","gists_url":"https://api.github.com/users/omaciel/gists{/gist_id}","starred_url":"https://api.github.com/users/omaciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omaciel/subscriptions","organizations_url":"https://api.github.com/users/omaciel/orgs","repos_url":"https://api.github.com/users/omaciel/repos","events_url":"https://api.github.com/users/omaciel/events{/privacy}","received_events_url":"https://api.github.com/users/omaciel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-19T12:49:03Z","updated_at":"2018-04-24T19:44:43Z","closed_at":null,"author_association":"NONE","body":"I'm trying to execute a query against Red Hat's Bugzilla instance (version: 4.4) equivalent to what is provided by the following URL:\r\n\r\n```https://bugzilla.redhat.com/request.cgi?action=queue&requester=&product=&type=needinfo&status=all&requestee=foo@example.com```\r\n\r\n**NOTE**: if you substitute `foo@example.com` for a valid Bugzilla email, you should see something similar to the screenshot below:\r\n\r\n![screenshot 2018-04-19 08 45 02](https://user-images.githubusercontent.com/53362/38992270-3cfb13ce-43ae-11e8-9d01-f2cabc493f59.png)\r\n\r\nSo the idea is to be able to query for ```flag contains string 'needsinfo'``` and ```requestee contains string 'foo@example.com'```."},"comment":{"url":"https://api.github.com/repos/python-bugzilla/python-bugzilla/issues/comments/384056062","html_url":"https://github.com/python-bugzilla/python-bugzilla/issues/71#issuecomment-384056062","issue_url":"https://api.github.com/repos/python-bugzilla/python-bugzilla/issues/71","id":384056062,"user":{"login":"omaciel","id":53362,"avatar_url":"https://avatars2.githubusercontent.com/u/53362?v=4","gravatar_id":"","url":"https://api.github.com/users/omaciel","html_url":"https://github.com/omaciel","followers_url":"https://api.github.com/users/omaciel/followers","following_url":"https://api.github.com/users/omaciel/following{/other_user}","gists_url":"https://api.github.com/users/omaciel/gists{/gist_id}","starred_url":"https://api.github.com/users/omaciel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omaciel/subscriptions","organizations_url":"https://api.github.com/users/omaciel/orgs","repos_url":"https://api.github.com/users/omaciel/repos","events_url":"https://api.github.com/users/omaciel/events{/privacy}","received_events_url":"https://api.github.com/users/omaciel/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T19:44:43Z","updated_at":"2018-04-24T19:44:43Z","author_association":"NONE","body":"Hi @crobinso I'm using the API currently taking advantage of both `url_to_query` and `build_query` methods. Right now one can do something like [this](https://github.com/SatelliteQE/bugwrangler/blob/master/bugwrangler/queries.py#L35-L40).\r\n\r\nAs you can see, one can query for a given flag (or multiple ones) but the query usually expects that there is only one value for the flag (usually one of the following: `+`, `-`, or `?`).\r\n\r\nThe `needsinfo` flag is a special one because beside the standard value mentioned above, it also contains the email of the person you need information from (e.g. `needsinfo? someone@example.com`).\r\n\r\nI have tried to pass this [query](https://bugzilla.redhat.com/request.cgi?action=queue&requester=&product=&type=needinfo&status=all&requestee=jcallaha%40redhat.com&component=&group=type&do_union=1) to `url_to_query` but Bugzilla returns an error.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"omaciel"}}