Comments (5)
@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.
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.
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.
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.
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)
- Security flaw HOT 3
- Little Question HOT 9
- Not able to re-use stored session_id properly HOT 3
- TicketSearch with mutiples States HOT 2
- ticket PendingTime State HOT 2
- "out of memory" Exception while retrieving ticket with ~1G attachements HOT 3
- Search tickets between dates HOT 1
- Invalid Webservice Name but returning SessionID HOT 1
- TicketGet problem(delete, plz) HOT 1
- Ticket search with multiple StateIDs results in Traceback HOT 1
- Missing ticket.merge HOT 2
- Completion SessionGet operations question HOT 3
- Ticket Pending time HOT 1
- Error with ScriptAlias HOT 1
- TicketCreate() assumes falsely that a ticket number looks like a number (an int) HOT 3
- base64 encoding for attachments with Python 3 HOT 1
- In otrs/objects.py, assumptions made by "autocast" are error-prone (for values with a leading zero) HOT 1
- getchildren deprecation is resolved by PR HOT 1
- Rewrite tests to work with https://hub.docker.com/r/juanluisbaptiste/otrs
- Make Python 3 only.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-otrs.