Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create issues on Jira Cloud as app?

Danut M _StonikByte_
Atlassian Partner
April 10, 2020

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

1 answer

1 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2020

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.

Danut M _StonikByte_
Atlassian Partner
April 13, 2020

Hi @Petter Gonçalves

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!

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 14, 2020

You are welcome, @Danut M _StonikByte_

have a nice day!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events