Check if attachment is null in javascript
Hi ,
I created a new workitem.
In the editor presentation i defined attachments under the tab links , the attachment ID is:
com.ibm.team.workitem.presentation.attachments
I want to create a java script that will check if the attachment is null or contain any value (I don't care which value it contain).
Is it possible ? (According to https://jazz.net/forum/questions/157309/how-to-get-attachment-file-name- of-a-work-item-in-a-customized-attribute , you can't access the attachments collection from JavaScript)
If it's possible in java script , how can i do it ?
BR,
Chen
Accepted answer
For all I know you can not access attachments in JavaScript. Carefully read the description of what data you can access in JavaScript. You basically have access to specific work item attributes and attachments are not an attribute, really.