Coder Social home page Coder Social logo

Comments (14)

cryptomail avatar cryptomail commented on August 12, 2024 1

True bug:
Screenshot 2023-10-28 at 6 51 10 PM

from zenpy.

em3697 avatar em3697 commented on August 12, 2024 1

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.

cryptomail avatar cryptomail commented on August 12, 2024

@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.

cryptomail avatar cryptomail commented on August 12, 2024

OK the UI seemingly allows it from the onset. Interesting. Continuing investigation.

from zenpy.

cryptomail avatar cryptomail commented on August 12, 2024

Let's try a CURL from https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#create-ticket

from zenpy.

cryptomail avatar cryptomail commented on August 12, 2024

will look into, willfix.

from zenpy.

cryptomail avatar cryptomail commented on August 12, 2024

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.

cryptomail avatar cryptomail commented on August 12, 2024

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.

cryptomail avatar cryptomail commented on August 12, 2024

Please look at the ticket audit history. You can click on the event history using the little clock button.
Screenshot 2023-10-29 at 9 17 05 AM

from zenpy.

cryptomail avatar cryptomail commented on August 12, 2024

@em3697 Closing issue tomorrow if you cannot convey to me the duplication steps with exact data, or not implicating automations/triggers.

from zenpy.

em3697 avatar em3697 commented on August 12, 2024

@cryptomail I'm reviewing this today - will get back to you with more info

from zenpy.

em3697 avatar em3697 commented on August 12, 2024

Please look at the ticket audit history. You can click on the event history using the little clock button. Screenshot 2023-10-29 at 9 17 05 AM

Screenshot 2023-10-30 at 3 55 09 PM

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.

wolfassi123 avatar wolfassi123 commented on August 12, 2024

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.

em3697 avatar em3697 commented on August 12, 2024

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)

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.