Hi Team,
I was peforming the get issue Operation as below:
GET /rest/api/3/issue/{issueIdOrKey}
And there is note for this operation
Note: All fields are returned by default. This differs from Search for issues using JQL (GET) and Search for issues using JQL (POST) where the default is all navigable fields.
My query for this operation is, is there a way how I some knows what will be the fields in response to this API.
It talk about all available fields. Is there any doc where all this Fields and their types are being mentioned ? or any JSON payload which describe the almost all fields to this API?
The usual practice is that you retrieve the required fields by iterating through JSON objects recursively. In groovy, if your JSON object returned is say result. then you iterate like result.fields.customfield_id
Basically, you have to retrieve the required values programatically.
Hi Suhas,
I agree with your explanation. Just wanted to confirm on one thing. Is there any metadata API call in v2 to get the list of all fields avaiable in jira?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nishant Sharma Didn't get your question. What is the requirement? And I believe, if its Jira cloud, its api3, api2 is for jira server. isnt it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
with GET /issue, you get all available fields both CF and system fields, i believe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
You need to use the next query to read exist custom fields:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gonchik,
Do we have anything in v2 API version to get the list of all fields.
I need to know all the fields whether they are custom or the defualt fields. in other words,
I need a response to this API which includes all possible values for all fields whether they are fefault or custom.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.