I think there is problem in data feaching

@Rahul123
check this [HELP] How to Customize (hide) "+" add button in section Connection (Linked Documents)
for managing connections task id needed in your document not no of task value
Actions and Links