• Resolved musthagon

    (@musthagon)


    Hello, Scand team,

    Excellent plugin you made, it just affords to our needs,

    Even so, I’m new using osTicket and reviewing the documentation I see that It’s possible add some custom tickets fields to the call in your api. That worked for me to add a department dynamic field in tickets details and with a filter in osTicket match those with some departments.

    Here I made a fork https://github.com/musthagon/scand-osticket-connector of your plugin.

    And the steps I did was so:
    Osticket:

    1. In Admin panel > Manage > Forms > Ticket details . I add two fields: one dynamic field link to departments and other basic field (short answers). And I put two unique variables to each one.

    WordPress:
    1. In osTicket connector setting, now will appear four new fields:
    2. Custom text form field osTicket name: Variable of basic field in osTicket .
    3. Custom text form field target name: Contact form name match for basic field.
    4. Custom dynamic form field osTicket name: Variable of dynamic department field in osTicket.
    5. Custom dynamic form field target name: Contact form name match for dynamic department field.

    WordPress form:
    1. I added a field for basic field.
    2. I added a select field similar to topic (osticket-topic) with the pipes, for dynamic deparment field.

    I tested it in: osTicket v1.15.2

    This could be useful for others I think.
    Greetings from Venezuela.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks for your work. I tried it and it works. Is it also possible to add more than one custom field in ‘Custom text form field target name’, or does this only support one custom field?

    Thread Starter musthagon

    (@musthagon)

    Hello @pchulpfriesland,

    I think osTicket allow multiple custom fields, you have to test it,

    For now, you have to edit: admin-settings.php class-http-api.php plugin files, copying the configurations (declarations, functions, html code) for the variables:
    1. custom_dynamic_field_osticket_name
    2. custom_dynamic_field_target_name
    Of course, adding two new variables with different name for example:
    1. custom_dynamic_field_osticket_name_2
    2. custom_dynamic_field_target_name_2

    The ideal way is convert those variables in arrays, for allow multiples osticket custom fields. But, I’m busy at this moment to help you.

    Greetings,

    • This reply was modified 3 years, 6 months ago by musthagon.
    • This reply was modified 3 years, 6 months ago by musthagon.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pull request for adding custom tickets fields’ is closed to new replies.