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

Jira Get Issue API

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?

2 answers

0 votes

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/

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.

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?

@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?

with GET /issue, you get all available fields both CF and system fields, i believe.

Suggest an answer

Log in or Sign up to answer
TAGS

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