You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Using the Jira servicedesk API I can retrieve all the organizations (paged).
.../rest/servicedeskapi/organization
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?
@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.
Thanks,
Kian
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.
...rest/servicedeskapi/servicedesk/1/organization
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.