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 2021-07-05 12:54:59

aziz
Member
Registered: 2021-03-30
Posts: 109

post approvement to a ticket solution

hello everyone ,

if solution is  add to a ticket how can i post refuse or approvement to that solution using api request .

thanks

Offline

#2 2021-07-05 16:45:49

Thibaud222
Member
Registered: 2021-06-28
Posts: 23

Re: post approvement to a ticket solution

approval:

PUT ITILSolution/(id_solution)
{"input": { "status":3,"date_approval":"'.$date_approval.'","users_id_approval":'.$users_id_approval.'}

refused:

POST Ticket/(id_ticket)/ITILFollowup


by default adding a message rejects the solution.

Offline

#3 2021-07-06 21:57:19

aziz
Member
Registered: 2021-03-30
Posts: 109

Re: post approvement to a ticket solution

ty but adding followup to reject a solution didn't work for me

Offline

#4 2021-07-07 10:00:30

Thibaud222
Member
Registered: 2021-06-28
Posts: 23

Re: post approvement to a ticket solution

aziz wrote:

ty but adding followup to reject a solution didn't work for me

ok replace "status": 3 by 4

( 2 = in progress ; 3 = approval ; 4=refused)

PUT ITILSolution/(id_solution)
{"input": { "status":4,"date_approval":"'.$date_approval.'","users_id_approval":'.$users_id_approval.'}

Offline

#5 2021-11-16 17:27:52

aziz
Member
Registered: 2021-03-30
Posts: 109

Re: post approvement to a ticket solution

is there a way to only change the status in the playload with (3 approved or 4 refused) and the date_approval and users_id_approval gets updated automatically.

Offline

Board footer

Powered by FluxBB