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,456,993
Community Members
 
Community Events
176
Community Groups

Accessing all options when creating an issue

Hi,

I'm trying to connect to the Jira API and retrieve all options for a custom field. From my research I will have to use "Get Create Issue Data" to retrieve this information. For context, I believe the company server is using the Rest API v2. 

So I am trying to follow the instructions outlined here

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-createmeta-get 

I can retrieve all options for every project type with 

"/rest/api/2/issue/createmeta/"

But when I try to filter to only retrieve options for a specific project id with

"/rest/api/2/issue/createmeta/projectIds=16103"

It returns 404. I found the project id using inspect element and grabbing "value":"1603" that comes just after my desired project name.

Just wondering what I am doing wrong, this is my first time using the API, so I'm a little confused.

 

Thank you!

1 answer

1 accepted

1 vote
Answer accepted

Hello @Chris Kwan 

The projectIds is a parameter, and parameters are declared after the question mark, like this:

/rest/api/2/issue/createmeta?projectIds=16103

Next, you said "I believe the company server is using the Rest API v2" but the link in your post points to documentation for Jira CLOUD's v2 REST API documentation and you've added the tag 'cloud' to your question. You need to find out if you are using Jira Server or Jira Cloud as the REST APIs of the two can be quite different.

If your company is on Jira Cloud, you should think about using the v3 REST API, as development of v2 ended some time ago.

If your company is on Jira Server, there is no v3 REST API, only a v2 REST API and the documentation is here (this is for server v8.14.0, which is the most recent)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events