I am trying to create new issue using JIRA Portal with REST API with attachment. However, when I try to create issue with following command:
issue_dict = {
'project': {'key': 'TF'},
'summary': 'T***************ı',
'description': '',
'issuetype': {'name': 'O*****a'},
'customfield_10024':[{'name': x }],
'attachment':'C:\\Users\\***************************\\T***********ri.pdf'
I get following error:
response text = {"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}
On the other hand, when I create without attachment part on dict above, attachment cannot be seen in customer portal but I see in issue screen.
Is it possible to add attachment via REST API that is visible in portal?
Hi Nihad
Look at the answer by Jeff Caron in this. It's for C# and works for me.
Essentially you need to create the issue without an attachment, then knowing the issue key, you add an attachment to it.
Hope this helps
The problem is it cannot be seen in JIRA Portal, whilst, it is in the issue screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know if you got an answer to this question. The reason it can't be seen on the Portal is that you need to add a comment that includes a link to the attachment. The comment needs to have something like:
See [^<filename>]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.