UpdateTicket webservice TimeUnit

English! place to talk about development, programming and coding
Post Reply
HansVader
Znuny newbie
Posts: 2
Joined: 23 Apr 2016, 08:20
Znuny Version: Version 5

UpdateTicket webservice TimeUnit

Post by HansVader »

I am trying to update a ticket via the UpdateTicket web service. Everything works fine except the TimeUnit parameter. I can't properly pass TimeUnits which are not full hours. So like 2.5 hours or 2,5 hours will not work. Please have a look at the attached screenshot. In the screenshot you can see the XML message i am trying to send. How do i have to pass half hour TimeUnits? I looked at the perl code on GitHub and it looks like that it is not accepting anything other then numbers from 0 to 9.


ValidateTimeUnit: https://github.com/OTRS/otrs/blob/548b8 ... n.pm#L1060

ErrorMessage and Screenshot:
UpdateTicket.PNG
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: UpdateTicket webservice TimeUnit

Post by jojo »

this seems to be a bug. I suggest to create a bug (http://bugs.otrs.com) and send a pull request via github
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
HansVader
Znuny newbie
Posts: 2
Joined: 23 Apr 2016, 08:20
Znuny Version: Version 5

Re: UpdateTicket webservice TimeUnit

Post by HansVader »

Do you really think that this is a bug or i am just using this function wrong?
I kinda wish that it is not a bug, because i need this feature :).
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: UpdateTicket webservice TimeUnit

Post by jojo »

in the frontend you can use , or . so it seems to be a bug
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply