Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ticket Tags #251

Open
pgulley opened this issue Nov 7, 2024 · 1 comment
Open

Feature Request: Ticket Tags #251

pgulley opened this issue Nov 7, 2024 · 1 comment

Comments

@pgulley
Copy link

pgulley commented Nov 7, 2024

Description

I would like to be able to easily add tags to tickets when I create them or add articles to them. Currently, the 'tags' parameter in ticket.create or ticket.update does nothing.

@pgulley
Copy link
Author

pgulley commented Nov 12, 2024

Implemented this in a project- currently don't have the cycles to get up to speed on this repository's contribution rules, but leaving this here for posterity

`class Tag(Resource):
#Quick minimal extention to the zammad api
path_attribute = "tags"

def tag_ticket(self, ticket_id, tag):
   
    params = {
        "item" : tag,
        "o_id" : ticket_id,
        "object" : "Ticket",
    } 
    response = self._connection.session.post(self.url + "/add", params=params)
    return self._raise_or_return_json(response)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant