I am using the below api to add / upload attachment. I need to add a new label/ tag that is "resolved" with that attachment. Because while fetching the attachment info I want to check whether that attachment is "resolved" or not. is there any way to add that.
url: /rest/api/2/issue/{issueIdOrKey}/attachments
Hi @jay You cannot add a tag or a label when POST to add attachments. You need to add attachments and the Edit issue to add a label.
/rest/api/2/issue/{issueIdOrKey}
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Anandhi Arumugam _Cprime_ when I create a comment using the REST API, when I try to add the attachment details in to it it throws the "attachment validation error". Please look into the below values:
When I add the attachment id values which is "10050"Which I got after upload the attachment. It throws error. But when I add "16ffe152-698f-5ed8-aa8a-f04b90f0c748"this value as attachment id it takes and display in jira. I got this value from get issue detals using REST API.
I don't know how to get this value?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.