Giter VIP home page Giter VIP logo

Comments (5)

ewsterrenburg avatar ewsterrenburg commented on July 28, 2024

@ryanbentley: Could you please provide a little more elaboration about this issue please...
What request are you trying to perform? Against what version of OTRS? Etc.

from python-otrs.

ryanbentley avatar ryanbentley commented on July 28, 2024

Nevermind. I've sorted it out - my connector was incorrectly configured.

I have another question though:

EG: client.ticket_get(ticketid, get_articles=True).articles()[0]

How do I get the body of an article?

from python-otrs.

ewsterrenburg avatar ewsterrenburg commented on July 28, 2024

Similar to the attributes of a ticket itself, the 'attrs' attribute of an article provides you with a dictionary of its attributes. For example:

ticket = client.ticket_get(ticketid, get_articles=True)
article = ticket.articles()[0]
body = article.attrs['Body']

Easiest way to view the names of all available attributes is to play around with the result of a TicketGet operation in an (i)python terminal.

from python-otrs.

ryanbentley avatar ryanbentley commented on July 28, 2024

Is it possible to create a ticket, as an agent, but forcing it as if it was created by a user?

I'm trying to allow users to create tickets via my interface without otrs being tied into my user DB, so ideally I'd like to use client.user_session_register with agent credentials, but create a ticket like so:

Ticket(CustomerUser=current_user.email)

Or something similar.

from python-otrs.

ewsterrenburg avatar ewsterrenburg commented on July 28, 2024

I don't fully grasp what exactly you are trying to accomplish...
Of course you can create a ticket while logging in as an agent and set the CustomerUser as an attribute while creating the ticket (as documented in http://otrs.github.io/doc/manual/admin/4.0/en/html/genericinterface.html#generic-ticket-connector).

Actually the readme here contains the exact same thing.

If you are trying to accomplish something functionally different, I guess the OTRS mailinglist (https://groups.google.com/forum/#!forum/otrs_archive) is a better place to find out if what you want is supported by the soap interface / generic ticket connector and how this request should look like.

If I'm not overlooking something, the whole functionality for a TicketCreate for the generic interface is supported by this module.

from python-otrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.