最近の検索
最近の検索はありません

Sean Russell
参加日2021年5月13日
·
前回のアクティビティ2021年10月22日
フォロー中
0
フォロワー
0
合計アクティビティ
8
投票
3
受信登録
4
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Sean Russell
Sean Russellさんが投稿を作成しました:
I need to be able to update a ticket's custom_field value with an integer via ZAF Client request (the field "type" is "integer"). Using the request options below, the request is successful and the correct ticket field is updated, however the value is a String instead of Integer. This isn't a huge issue, but will require parsing the value to an integer when reading it, which isn't ideal. Is there a way to change my request to preserve the value's numeric datatype?
The request looks like this:
const options = {
url:`/api/v2/tickets/${ticketID}.json`,
type:"PUT",
contentType:'application/json',
dataType:"json",
data: JSON.stringify({ticket: {custom_fields: [{id: 1500003010701, value: 12}]}}),
}
client.request(options)
And the resulting ticket field looks like this:
{
"id": 1500003010701,
"value": "12"
}
Is there a way to ensure the value will be an Integer (12) rather than a String ("12") ?
投稿日時:2021年4月12日 · Sean Russell
0
フォロワー
2
投票
1
コメント