Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I'm getting "No project could be found with key 'ABC'." even though GET .../project/ABC works

I'm trying to create a Jira component via the REST API.

I POST to https://my.atlassian.net/rest/api/3/component

In the POST request body I set:

{
"name": "Component 1",
"description": "This is a Jira component",
"project": "ABC",
"assigneeType": "UNASSIGNED",
"leadAccountId": "myaccountid"
}

A project with key ABC exists. And when I GET https://my.atlassian.net/rest/api/3/project/ABC
I get a proper response with:

"key" : "ABC"

So it's there and I have access to it.

But when I send the POST to create the component I always get a 404 back with:

{ "errorMessages": [ "No project could be found with key 'ABC'." ], "errors": {}}

And ideas, why this is happening?

I'm using Postman with an API Token. The user is a Jira Admin.

1 answer

Hi @Malte Finsterwalder ,

I just created a component on my own instance via Postman. And there is no problem at all.

A 404 is returned if the project is not found or the user does not have permission to browse the project containing the component.

So the first is not the case, it should be the latter. Or it might be that Jira Admin is not a project admin and can't create components.

Rudy

Thanks for trying that!

When I'm logged in with the same user in Jira, I can see the project and I can create a component.

When I do it through the rest API I can also see the project with all it's details, as described above. So I obviously have permissions to access the project.

In "Project settings"->"People" the group "jira-administrators" is present as Role "Administrators" and I'm part of that group.

I also added myself to the Project with Role "Administrators" but that still does not work.

Hm....

I can create a new project via REST API, but I still can't create a component in that new Project. I'm also the lead of that new project.

I still get "No project could be found with Key 'NEW'."

Is it a classic project or a next gen?

I've used a classic project.

It's a classic project as well.

In that case...I've no idea left. Sorry.

I think you should contact Atlassian support to get this one sorted out. I do stay curious about what is the problem, so if they have figured it out, could you please report it here?

Thanks for all your help! If I find the problem, I will post the solution here.

Like Rudy Holtkamp likes this

Hi @Malte Finsterwalder , Hope you've found the solution :) I'm running into the same challenge. When I open the URL directly in my browser when logged-in, all works well. But when running the same API GET in automations I get the issue:

"errorMessages": [
    "No project could be found with key 'XXX'."

Hi @Malte Finsterwalder and others with this issue. I found the solution! I had to add a header with an API key to allow access to the webservice that is hashed in base64 together with my email. (emailaddress:apikey)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

301 views 13 14
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you