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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to get only required fields as response in jira api/2/Project API ?

I will be retrieving all Projects using the API "/rest/api/2/project".  I need only id, key & name from the response. Is it possible to get only these 3 values using the above API? If yes, what will be the param values ?

please advise? 

1 answer

0 votes
brbojorque Community Leader Dec 26, 2019

@PK ,

Based on the documentation, you can't but there is no stopping you from parsing the responses to your desired data structure.

The only option in the documentation is to expand, adding more information in the responses.

rest/api/2/project?expand=description,lead,url,projectKeys

Yes. right now I am parsing the response. I thought of retrieving only required fields to improve the performance.

Thanks for your response.

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