taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
269 stars 162 forks source link

Can I create a helpdesk ticket from redmine java api? #238

Closed sergiochtf closed 8 years ago

sergiochtf commented 8 years ago

Hi! Is it possible create a helpdesk ticket from Redmine Java API?? Is there any class in the API that allows me to create the helpdesk ticket?? I need to create this request from my java project:

POST /helpdesk/create_ticket.xml
<?xml version="1.0"?>
<ticket>
    <issue>
        <project_id>[id_del_proyecto]</project_id>
        <subject>[asunto_del_formulario]</subject>
        <description>[descripcion_del_formulario]</description>
        <assigned_to_id>[id_del_usuario_al_que_se_asigna]</assigned_to_id>
        <tracker_id>Soporte ciudadano</tracker_id>
        <custom_fields type="array">
            <custom_field id=12>
                <value>[sede]</value>
            </custom_field>
            <custom_field id=45>
                <value>[navegador]</value>
            </custom_field>
            <custom_field id=46>
                <value>[sistema_operativo]</value>
            </custom_field>
            <custom_field id=47>
                <value>[version_de_java]</value>
            </custom_field>
        </custom_fields>
    </issue>
    <contact>
        <email>[email_del_usuario]</email>
        <first_name>[nombre_del_usuario]</first_name>
    </contact>
</ticket>

Regards.

alexeyOnGitHub commented 8 years ago

what is a "helpdesk ticket"? is this some redmine extension/plugin? is this a custom issue type you have in your redmine?