Quantcast
Channel: THWACK: Popular Discussions - Web Help Desk
Viewing all articles
Browse latest Browse all 5301

Time period ticket custom field with API

$
0
0

I built a frontend for our ticket system that allows the categories to be searched textually as the dropdown system wasn't cutting it for our clients.  There is a custom ticket field of the type Time Period that I can't seem to handle.

 

- source code in the assist page for the dropdown refers the the units of time as id 0-5 for mins, hrs, days, weeks, months, years

- the api returns the duration as a number and the unit as the textual representation

- the database stores the duration as a float and the unit as a float(appears to be 0.0000-5.0000)

 

Could someone point me in the right direction as to what JSON to use to update this field?  I've tried every combination I could think of but have only had success with updated the duration field and not the unit field. 

 

Thank in advance,

Jerry


Viewing all articles
Browse latest Browse all 5301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>