Comments (14)
from zenpy.
I've narrowed it down to an issue with the triggers that get applied after creation changing the status - I will add an action to the trigger to enforce the status. @cryptomail thanks for your help with the history feature
from zenpy.
@em3697 Have you tried the UI? Is there a way to create a ticket in this status from the UI? Let me try it myself now. I'll also read the documentation to see if there's any wording on this.
from zenpy.
OK the UI seemingly allows it from the onset. Interesting. Continuing investigation.
from zenpy.
Let's try a CURL from https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#create-ticket
from zenpy.
will look into, willfix.
from zenpy.
Wait, I just tried it with my own script and it's working!!!
What version are you using?
This created a pending ticket!
# Import the Zenpy Class
from zenpy import Zenpy
from zenpy.lib.api_objects.help_centre_objects import Article, Post, Comment, Section, Category, Topic
from zenpy.lib.api_objects import User, Organization, Ticket, Group, GroupMembership
# Default
zenpy_client = Zenpy(**creds)
ticket = Ticket(description="A problem occurred", subject="test pending", status="pending")
t = zenpy_client.tickets.create(ticket)
breakpoint()
print(ticket.to_json)
print(t.to_json)
from zenpy.
There could be automations on your side @em3697 that are putting things back into Open status. Please let me know how you want to proceed.
Maybe give me more data?
from zenpy.
Please look at the ticket audit history. You can click on the event history using the little clock button.
from zenpy.
@em3697 Closing issue tomorrow if you cannot convey to me the duplication steps with exact data, or not implicating automations/triggers.
from zenpy.
@cryptomail I'm reviewing this today - will get back to you with more info
from zenpy.
Please look at the ticket audit history. You can click on the event history using the little clock button.
I see that the ticket is submitted as "Pending" and then something is overriding it to become "Open". I looked at macros, automations, and triggers but nothing seems to be changing the ticket status.
from zenpy.
I've narrowed it down to an issue with the triggers that get applied after creation changing the status - I will add an action to the trigger to enforce the status. @cryptomail thanks for your help with the history feature
I've been trying to work with triggers, but so far, I have been unsuccessful. How did you create an action using Zenpy? There appears to be no class of the type 'Action' to pass to the Trigger Object Instance.
from zenpy.
I've narrowed it down to an issue with the triggers that get applied after creation changing the status - I will add an action to the trigger to enforce the status. @cryptomail thanks for your help with the history feature
I've been trying to work with triggers, but so far, I have been unsuccessful. How did you create an action using Zenpy? There appears to be no class of the type 'Action' to pass to the Trigger Object Instance.
I did not use 'actions' but I used the following line to create a trigger using zenpy:
trigger_audit = zenpy_client.triggers.create( Trigger(actions=[{"field": "assignee_id", "value": curr_user_id}], conditions=org_conditions, active=False, title=f'{curr_user_name} Trigger' ))
from zenpy.
Related Issues (20)
- Add lilnter to Zenpy HOT 3
- Create or Update many users does not work HOT 16
- Incremental API does not work, when passing `datetime.datime` HOT 6
- Ticket cannot be rated HOT 7
- Search export support for page[size] parameter HOT 4
- Users incremental endpoint is missing the cursor attribute HOT 3
- [Feature Request] zenpy to support cache backends HOT 4
- Question: Is it possible for me to simulate a conversation between a client and an Agent. HOT 1
- [Question] Facing a weird issue while creating a ticket HOT 3
- Question: Adding a comment as part of the actions of a Trigger HOT 3
- [Question] Does zenpy support getting list of webhook invocations filtered by status? HOT 7
- `SearchExportResultGenerator.next()` raises `IndexError` HOT 6
- Zenpy Cachetools implementation is not ThreadSafe and doesn't have a lock HOT 2
- `TicketCursorGenerator` returns no values HOT 15
- `Ticket.commets` return no values HOT 2
- TooManyValuesException: Parameter organization_memberships cannot specify more than 1 values HOT 1
- Resource not found when calling Zenpy.chats.triggers() HOT 5
- Assignee: is not a member of the group HOT 2
- requests.exceptions.HTTPError: 404 Client Error: Not Found for url: .../api/v2/help_center/categories.json?page... HOT 2
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 zenpy.