I need to set a value in service now user story type for epic or parent (any reference) field using create or update request of REST API in c#. I have tried setting the link and the value to the epic field to JSON object using c# class.
storyObj.epic.link="https://<companyname>.service-now.com/api/now/table/rm_epic/{sys_id}"; storyObj.epic.value= "{sys_id}";
The user story is getting created with blank epic or parent field. The epic is declared like this in my class-
public Epic epic { get; set; } public class Epic
{
public string link { get; set; }
public string value { get; set; }
}
but when i am setting the value its coming like this-
"epic": {
"link": "https://company.service-now.com/api/now/table/rm_epic/{value=d385c54adbb5bb00f493894d0",
"value": "{value=d385c54adbb5bb00f493894d0"
},