Skip to content

How can I see the tickets Assigned to my Group? #43

Open

Description

@prophaner

In the GUI, I have a way to see 'Tickets Assigned to my groups', then they all have in common the 'AdminCc (group)' header. How can I make this search using the API, if is possible?

Activity

  1. z4r commented on Apr 17, 2015

    @z4r
    Owner

    Hi @prophaner ,
    the url to call is something like: /REST/1.0/search/ticket?query=AdminCc="YOURGROUP"

    So with the library will be:

    try:
        response = resource.get(path='search/ticket?query=AdminCc="YOURGROUP"')
        logger.info(response.parsed)
    except RTResourceError as e:
        logger.error(e.response.status_int)
        logger.error(e.response.status)
        logger.error(e.response.parsed)

    You if need more info about queries: http://requesttracker.wikia.com/wiki/REST

  2. prophaner commented on Apr 17, 2015

    @prophaner
    Author

    Thanks for your reply. I was actually trying it that way, no success.

    On Fri, Apr 17, 2015 at 1:45 PM, Andrea de Marco notifications@github.com
    wrote:

    Hi @prophaner https://github.com/prophaner ,
    the url to call is something like:
    /REST/1.0/search/ticket?query=AdminCc="YOURGROUP"

    So with the library will be:

    try:
    response = resource.get(path='search/ticket?query=AdminCc="YOURGROUP"')
    logger.info(response.parsed)except RTResourceError as e:
    logger.error(e.response.status_int)
    logger.error(e.response.status)
    logger.error(e.response.parsed)

    You if need more info about queries:
    http://requesttracker.wikia.com/wiki/REST

    —
    Reply to this email directly or view it on GitHub
    #43 (comment).

    Regards,
    Luis M. Ramos Aguilar

  3. prophaner commented on Apr 18, 2015

    @prophaner
    Author

    Andrea, I just forked your code, maybe I can contribute.

    On Fri, Apr 17, 2015 at 2:13 PM, Luis Ramos lmramos89@gmail.com wrote:

    Thanks for your reply. I was actually trying it that way, no success.

    On Fri, Apr 17, 2015 at 1:45 PM, Andrea de Marco <notifications@github.com

    wrote:

    Hi @prophaner https://github.com/prophaner ,
    the url to call is something like:
    /REST/1.0/search/ticket?query=AdminCc="YOURGROUP"

    So with the library will be:

    try:
    response = resource.get(path='search/ticket?query=AdminCc="YOURGROUP"')
    logger.info(response.parsed)except RTResourceError as e:
    logger.error(e.response.status_int)
    logger.error(e.response.status)
    logger.error(e.response.parsed)

    You if need more info about queries:
    http://requesttracker.wikia.com/wiki/REST

    —
    Reply to this email directly or view it on GitHub
    #43 (comment).

    Regards,
    Luis M. Ramos Aguilar

    Regards,
    Luis M. Ramos Aguilar

  4. z4r commented on Apr 18, 2015

    @z4r
    Owner

    you are welcome ;)
    I succest you to start from a working url in the browser ;)

  5. prophaner commented on Apr 19, 2015

    @prophaner
    Author

    Andrea, I commited a fix to a few PEP items. I also suggest to replace the
    name of some arguments as they start with Capital and they should be all
    lowercase. Like 'Queue'.

    On Sat, Apr 18, 2015 at 4:08 AM, Andrea de Marco notifications@github.com
    wrote:

    you are welcome ;)

    —
    Reply to this email directly or view it on GitHub
    #43 (comment).

    Regards,
    Luis M. Ramos Aguilar

  6. z4r commented on Apr 19, 2015

    @z4r
    Owner

    Make your Pull Request so I can see these suggestions ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions