Forums

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

"You don't have permission to create issue in this project" trying to create issue in unity

Alvaro TL
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2023

Hi! I'm trying to create an issue from unity but it always returns me this message:

[RequestAPI] error on send requestHTTP/1.1 401 Unauthorized
{"errorMessages":["You do not have permission to create issues in this project."],"errors":{}}

I've checked all the permissions and I'm the only member and admin... so I can't understand what appends ....

 

I checked the permission schemes too...

An example of my code:


public static async UniTask<string> TestCreateIssue()
{
Issue issue = new Issue
{
fields = new Fields
{
project = new Project { key = "QA" },
summary = "Summary test",
description = "Description test",
issuetype = new Issuetype { name = "Bug" }
}
};

return await CreateIssue(issue);
}

 

public static async UniTask<string> CreateIssue(Issue issue)
{
var options = new RequestOptions();

options.headers.Add("Authorization", "Basic " + token);

var response = await Post(JIRA_API_ENDPOINT.Address + "rest/api/3/issue", issue, options);

if (!response.success)
{
LogError(response);
return response.error;
}
else
return "ok";
}


 

1 answer

0 votes
John Funk
Community Champion
May 30, 2023

Hi Alvaro - Welcome to the Atlassian Community!

Is this a Marketplace app? If so, you should contact that vendor directly for assistance. 

Alvaro TL
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2023

Hi John, thanks! It's not a Marketplace product, it's only a simple unity project for now  

John Funk
Community Champion
May 30, 2023

Okay, thanks, but I don't know what a "unity" project is. Can yo describe that more? Or show a screen shot of the project? 

And how are you trying to create the issue? By what method?

Kelly Arrey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2023

Hi @Alvaro TL  Can you share a screen shot of the Create Issues permission from the Permission Scheme? Thanks.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events