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

Check if organization exists through servicedesk API

Using the Jira servicedesk API I can retrieve all the organizations (paged). 


We have 100's of organizations, I would like to verify if an organization exists and if not, add it. How can I filter/search/query on the name of an organization?

1 answer

0 votes

@Rob Dubbeldam - Team Rockstars, there isn't a way within the endpoint itself to filter for an organization by name. 

The only way to do this is to consume the response and preogramatically iterate over each organization and check to see if it matches the organization you are looking for.





Hi @Kian Stack Mumo Systems,

Thank you for your reply, that is what I'm doing now. Do you know if there is a way to increase the limit of 50 results? Increasing the limit or maxResults doesn't have any effect. Or is there another endpoint available to get the organizations? 


Edit 10mins later]

Found another endpoint. Unfortunately the same results, limit also capped at 50.


@Kian Stack Mumo Systems 

Found a workaround, if you post/create an organization with a name that already exists it will return the existing id. So instead of verifying if an organization exists before creating it, I will always create it. 

@Rob Dubbeldam - Team Rockstars,  good to hear! Thanks for letting me know about that!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

209 views 1 6
Read article

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