Webservice API question

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Webservice API question

Jethro Borsje-2
Hi all,

I am developing a Bugzilla client and am trying to find a way to get
all components of a product. Is there a way to do this?

--
Best regards,
Jethro Borsje

http://www.jborsje.nl
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Marc Schumann
Jethro,

2010/12/16 Jethro Borsje <[hidden email]>:
> I am developing a Bugzilla client and am trying to find a way to get
> all components of a product. Is there a way to do this?

yeah, call Product.components (see
http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/Product.html).

   Regards
      Marc
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Jochen Wiedmann
In reply to this post by Jethro Borsje-2
If you are using Perl:

    http://cpan.uwinnipeg.ca/dist/BZ-Client


--
I Am What I Am And That's All What I Yam (Popeye)
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Jethro Borsje-2

I am using webservices to connect to Bugzilla. How should I use the products.components method?

Op 16 dec. 2010 12:45 schreef "Jochen Wiedmann" <[hidden email]> het volgende:
> If you are using Perl:
>
> http://cpan.uwinnipeg.ca/dist/BZ-Client
>
>
> --
> I Am What I Am And That's All What I Yam (Popeye)
> -
> To view or change your list settings, click here:
> <http://bugzilla.org/cgi-bin/mj_wwwusr?user=jethroborsje@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Frédéric Buclin
Le 16. 12. 10 14:56, Jethro Borsje a écrit :
> I am using webservices to connect to Bugzilla. How should I use the
> products.components method?

Read the API documentation:

http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Product.html

Further questions should be asked to the support mailing-list, though.

LpSolit
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Jethro Borsje-2
>> I am using webservices to connect to Bugzilla. How should I use the
>> products.components method?
>
> Read the API documentation:
>
> http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Product.html
>
When reading that page I get the feeling it is not possible, but I can
not imagine the Bugzilla Webservice API missing such a vital feature,
hence my question.
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Frédéric Buclin
Le 16. 12. 10 19:19, Jethro Borsje a écrit :
> When reading that page I get the feeling it is not possible

Ah, you indeed cannot, see
 https://bugzilla.mozilla.org/show_bug.cgi?id=424921

So for now, the best you can do is to call config.cgi?ctype=rdf, and
parse it.

LpSolit
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Max Kanat-Alexander
In reply to this post by Marc Schumann
On 12/16/2010 02:56 AM, Marc Schumann wrote:
> yeah, call Product.components (see
> http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/Product.html).

        Actually, in the WebService, Bug.fields will get you that information
as of 3.6 I believe.

        -Max
--
http://www.bugzillasource.com/
Competent, Friendly Bugzilla, Perl, and IT Services
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Jethro Borsje-2
>> yeah, call Product.components (see
>> http://www.bugzilla.org/docs/4.0/en/html/api/Bugzilla/Product.html).
>
>        Actually, in the WebService, Bug.fields will get you that information
> as of 3.6 I believe.
>
Thank you max using Bug.fields I can get the information I want!
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=lists@...>
Reply | Threaded
Open this post in threaded view
|

Re: Webservice API question

Gervase Markham
In reply to this post by Jethro Borsje-2
On 16/12/10 18:24, Frédéric Buclin wrote:
> Ah, you indeed cannot, see
>   https://bugzilla.mozilla.org/show_bug.cgi?id=424921
>
> So for now, the best you can do is to call config.cgi?ctype=rdf, and
> parse it.

Or, if JSON is more your thing (and it's definitely easier to parse),
pinch the JSON filter patch and JSON template for config.cgi from here:
https://wiki.mozilla.org/Bugzilla:REST_API#Patches

Gerv

_______________________________________________
dev-apps-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-apps-bugzilla
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=$MSGRCPT>