-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow upload Attachments to WI #25
Comments
i am getting error: 'Workitem' object has no attribute 'attach' is this still working?how can i add ".msg" file as attachment to WIT? |
@myksaquino |
we were able to read and download attachments for WIT but unable to attach to WIT...hopefully this can be added ASAP. |
I suppose the trick is here: {
"op": "add",
"path": "/relations/-",
"value": {
"rel": "AttachedFile",
"url": "https://dev.azure.com/fabrikam/_apis/wit/attachments/098a279a-60b9-40a8-868b-b7fd00c0a439?fileName=Spec.txt",
"attributes": {
"comment": "Spec for the work"
}
} but it's unclear for me - how did they get that guid:
And internet says I must pass filestream to a 'fileName' parameter - then why do they pass filename + file extension there? |
@orihomie you're going to get it as a response from upload attachment post: |
No update about this? |
May be, someone needs upload attachments to WI.
The text was updated successfully, but these errors were encountered: