You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-07-13 16:50:03

ronnie.peeters
Member
From: Eindhoven, the Netherlands
Registered: 2016-10-09
Posts: 72

Rest API - New ticket creation: disable notification to requester

Hi all,

I can currently trying to create a new ticket using the API and disable the notification to the requester.
Subsequently I create followups and process tasks.

My goal is to create and update this ticket WITHOUT any notification of the client, nor by email, nor by browser notification.
This is a automated ticket, just to keep track of things.

Everything is working fine EXCEPT for the notification disablement.

I am using powershell to accomplish this, by using a JSON payload

No matter what I try, notification is ALWAYS enabled for the requesting user.

What I have tried (but is not working):

{
    "users_id_requester_notif":  {
                                     "use_notification":  0
                                 },
    "_users_id_requester":  9,
    "global_validation":  2,
    "type":  1,
    "name":  "test by api",
    "impact":  2,
    "content":  "body content by api",
    "itilcategories_id":  12
}
{
    "users_id_requester_notif["use_notification"]":  0,
    "_users_id_requester":  9,
    "global_validation":  2,
    "type":  1,
    "name":  "test by api",
    "impact":  2,
    "content":  "body content by api",
    "itilcategories_id":  12
}
{
    "users_id_requester_notif":  0,
    "_users_id_requester":  9,
    "global_validation":  2,
    "type":  1,
    "name":  "test by api",
    "impact":  2,
    "content":  "body content by api",
    "itilcategories_id":  12
}
{
    "_users_id_requester_notif":  0,
    "_users_id_requester":  9,
    "global_validation":  2,
    "type":  1,
    "name":  "test by api",
    "impact":  2,
    "content":  "body content by api",
    "itilcategories_id":  12
}
{
    "global_validation":  2,
    "_disablenotif":  "true",
    "_users_id_requester":  9,
    "type":  1,
    "name":  "test by api",
    "impact":  2,
    "content":  "body content by api",
    "itilcategories_id":  12
}
{
    "use_notification":  0,
    "_users_id_requester":  9,
    "global_validation":  2,
    "type":  1,
    "name":  "test by api",
    "impact":  2,
    "content":  "body content by api",
    "itilcategories_id":  12
}

Has anybody any tips??

Last edited by ronnie.peeters (2020-07-13 16:56:13)


GLPI 9.4.3 - Currently in Dev environment - preparing for production
-Preparing data migration from OSTicket to GLPI for the Ticketing/Helpdesk part.
-Preparing data migration from OrangeSCRUM to GLPI for the project management part.
@Working at a company that is responsible for the IT environment of over 4500 employees that have IT assets

Offline

Board footer

Powered by FluxBB