when create issue by postman by api rest v3
Hi Mohamed,
I understand that you are trying to create an issue using the REST API in Jira, but that you are getting this error when doing so:
"summary": "Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.","description": "Field 'description' cannot be set. It is not on the appropriate screen, or unknown."
While this error can happen when fields do not appear on the screen, I think was is more likely happening here is that your REST API call is not authorized in the manner expected to make this work. If the authorization fails, Jira will continue to try to complete the POST call here, but it will do so anonymously. And since most projects do not leave open the create issue permission, you can get this kind of error message in the process.
How are you authenticating your call here? For most users that utilize postman, I would expect them to use Basic Auth. This page explains how you can first generate an API token, and then encode that token in a string with the format of
user@example.com:APItoken
in a base64 encoded string. Once you have that encoded string, you can craft an authorization header that will pass that string in order to be able to use basic auth. If you're doing this, it suggests that perhaps the method used to encode the string could be incorrect. Try this and let me know if you run into any problems with this approach.
Andy
Thanks for your reply , i got the solution that i get another account for jira with more permissions , now i can create issue
but can you help me how i can create issue with attachments videos , pictures in same time because we use jira to create bug reproduction which needs to have video to check the flow steps of app
If you have a validator on the create transition that requires an attachment, then you won't be able to use the REST API to create issues in that project. This is because the REST API does not currently have this ability like the web UI has. There is a feature request for this over in
There is a REST endpoint for adding an attachment in Jira Cloud, see POST /rest/api/3/issue/{issueIdOrKey}/attachments. However this endpoint requires that you specify the issue id or issuekey. I understand this is not exactly the same as the web UI of Jira will will let you do this. But I do not have a perfect solution for you here. The best I can see would be to alter the workflow to at least allow issues to be created without an attachment into a specific issue status, and then instead use the validator for other transitions. This could then let you create the issues via REST first, and then add the attachment.
thanks for your reply >> how to get the issue key directly from response by java code after create issue to use it in the second query of add attachment ?
It looks like you're new here. Sign in or register to get started.