Rest call through SIL for Updating custom field Value

jitendra daswani February 19, 2014

Hi All,

I want to update custom field value through SIL, for that I have written following code but unfortunately it doesn't update.

string headers = "Content-type|application/json";
string data1="{'update' : {'customfield_10414' : [{'set' : '"+ isTrunc +"'}]}}";
//lfDialogMessage("---ssss"+data1, "ERROR");
string [] params = "data|" + data1;
number ret= httpPost("https://c0006356.itcs.hp.com/imptl/rest/api/2/issue/"+key, headers, params);
lfDialogMessage("-----"+ret,"INFO");

Can anybody help me to sort out this issue?

Regards,

Jitendra Daswani

1 answer

0 votes
Florin Manaila
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2014

Hi,

Is that a remote machine or local? If it's local you can just use it like here: http://confluence.kepler-rominfo.com/display/SIL/Variable+Resolution#VariableResolution-CustomFields

HTH

Suggest an answer

Log in or Sign up to answer