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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

Jira cloud C# and Json

Im trying to get issues from the api using c# pulling about 15 fields

when I set the maxResults at 15 the code works and I can output the json from streamreader however when I set the maxresults to 20 nothing happens and no errors any Ideas on limitations or why this would happen... Ive also tried with just one field when I do this I get 100 records but if I add in another field no results no error...

string m_BaseUrl = "";
String endurl = "&startAt=0&maxResults=20&fields=one,two,three,four,five,set

1 answer

0 votes
Warren Community Leader Jan 14, 2021

Hi @Kelly DeGroot 

That's really strange because I've been using C# and the REST API for years without an issue, returning 100 records with a lot more than 15 fields each. The number of fields should have nothing to do with what's returned, although it's sounding as if the streamreader you're using is somehow size-limited. A couple of questions / suggestions :

  1. Has this ever worked successfully before i.e. has something changed and it's now having an issue?
  2. What happens if you don't pass in maxResults and don't pass in which fields? i.e. leave your variable endurl shown above blank
  3. Try the version 3 API, so it is /rest/api/3/search
  4. Post the code here where you're actually calling the API and returning the JSON, we may be able to spot an issue

Once we're through these, there may be further ideas that get sparked.

Suggest an answer

Log in or Sign up to answer

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