Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,046
Community Members
 
Community Events
176
Community Groups

Unable to get the issue metadata using jira on premise

I am using jira on premise and trying to get metadata for creating an issue as per this atlassian doc :
https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

Url used : http://localhost:8080/rest/api/2/issue/createmeta?projectKeys=DEMO&expand=projects.issuetypes.fields

Response : 

{
    "errorMessages": [
        "Issue Does Not Exist"
    ],
    "errors": {}
}
So I am figuring out an API for jira on premise which will provide metadata for creating an issue.


Also, When i am using that endpoint for the jira cloud , It is working fine 
Url used: https://{host}/rest/api/3/issue/createmeta

Response :
 image (1).png

2 answers

Hey Tom,

I've seen 400 responses with no error messages from those endpoints when the requesting user doesn't have permission to create issues in the project.

Hey Saurabh!

Thanks to your post I looked at the docs at https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/ and found the following:

Note that the createmeta resource has been reported to cause issues especially on larger instances. These issues have involved the size of the response or Jira running out of memory. That is why we decided to remove this endpoint in Jira 9.0.

The page is now split into "before 8.4" and "after 8.4".

Here they propose three new endpoints as replacement:

Note that these seem to NOT work with Jira Cloud.

I am running on prem Jira DC 9.1.0 and these endpoints do not seem to work.  I am able to get projects but the second URL when requested with my project key or project id return "400 - Bad Request".  Any thoughts?

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events