Using JSOM, I getting all the task details which are not started
. Using CAML query i got all the column values including related item column from Task list
var relateditm = $(this).attr("ows_RelatedItems");
alert(relateditm);
The value i got is
[{"ItemId":6,"WebId":"da019015-45eb-cd62-83e2-dfb360620954","ListId":"25ca3434-de22-4ccf-8954-6564cc179ea6"}];
I want the Item ID alone. How can i retrieve the id from this?
I tried with the below code, but undefined error is coming
var relateditmid = relateditm[0].ItemId;