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-09-16 12:17:49

brusilva
Member
Registered: 2020-11-17
Posts: 29

Task duration

I'm using powershell module but I'm unable to set a task duration for a created task.

so far I have

$NewTask = @{
    tickets_id = $ticket_number
    content = "teste"
    users_id_tech = $TechID
    state = "2"
    is_private = "1"

    groups_id_tech = "0"
    }

Add-GlpiItem -Creds $GlpiCreds -ItemType tickettask -Details $NewTask

whats the variable name for send a duration ?

Offline

#2 2021-09-16 15:13:02

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,168

Re: Task duration

this should work

actiontime  (in seconds)


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#3 2021-09-16 15:16:54

brusilva
Member
Registered: 2020-11-17
Posts: 29

Re: Task duration

LaDenrée wrote:

this should work

actiontime  (in seconds)


That's it. thanks a lot

Offline

#4 2021-09-16 15:23:28

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,168

Re: Task duration

you can set all these values for tickettask
{
"tickets_id":,
"taskcategories_id":0,
"date":"2020-09-07 10:20:04",
"users_id":,
"users_id_editor":0,
"content":"xxxxx..",
"is_private":,
"actiontime":,
"begin":null,
"end":null,
"state":,
"users_id_tech":,
"groups_id_tech":,
"tasktemplates_id":,
"timeline_position":


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

Board footer

Powered by FluxBB