Hi,
I am simply trying to create a Jira issue from my app (by using the app’s account, not by acting as a Jira user) and it does not work.
POST /rest/api/3/issue/
with this JSON body
{“fields”:
{“summary”:“This is my issue summary”,
“issuetype”:{“id”:“10002”},
“project”:{“id”:“10000”}}
}
The error I get is the following:
Received http error code 400 when accessing the JIRA system. JIRA server response: {“errorMessages”:[],“errors”:{“summary”:“Field ‘summary’ cannot be set. It is not on the appropriate screen, or unknown.”}}
It happens for both nextgen and classic projects.
The API documentation says that the required app scope is WRITE.
I tried the following scopes but it does not help.
“scopes”: [
“READ”, “WRITE”, “ACT_AS_USER”, “ADMIN”, “PROJECT_ADMIN”
]
Acting as user creates the issue, but my app does not need to act as user.
Is this a known limitation/bug or I am doing something wrong?
Any help is greatly appreciated.
Thank you,
Danut Manda
Hello @Danut M _StonikByte_
Thank you for reaching out.
Per your description, I understand that you are facing some errors when trying to create a ticket directly from your own developed app using Jira REST API. Is that correct?
In order to allow apps with the appropriate scope (ACT_AS_USER
) to access resources and perform actions in Jira and Confluence on behalf of users, I believe you will need to use the impersonation via the JWT Bearer token as explained in the documentation below:
User impersonation for Connect apps
Additionally, since this is a development question, the correct place to ask for help is in the Atlassian Developer Community:
https://community.developer.atlassian.com/
The mentioned portal was specifically created for development questions, where you will find articles and suggestions from other third-party partners and Atlassian developers. Feel free to open a new topic about your question there if my answer was not helpful.
Let us know if you have any other questions.
Indeed the issue was caused by the fact that we did not set properly the JWT.
A similar topic exists in Developer Community: https://community.developer.atlassian.com/t/unable-to-create-issues-on-jira-cloud-as-app/37259
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome, @Danut M _StonikByte_
have a nice day!
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.