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
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!
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.