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

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

Is there any way to search all organizations using /search API?

Hello,

 

I've a requirement to retrieve all organizations under my account. I tried /search API with the help of ?query for this. However, in query I need to try all the alphabets from 'a' to 'z' one by one. To avoid this, is there any other approach of using any wildcards like '*' or '%' or '.' in query so that in one request itself I will get all my organizations (teams).

 

Please help.

1 answer

0 votes

To search for all values of a field, simply don't select for any value at all.  Or if you want to ignore "nothing set", search for "is not empty"

Thank you for the suggestion.

Let me make my question more clear. Suppose  I've two organizations (aka teams) under my account named "my team" and "test team". To retrieve these two organizations, I would  need to make two requests using /search api with value for query being ?query=m&partial=true and ?query=t&partial=true. Is there any way to avoid these multiple requests being send, instead, with one /search request I would like to get both the organizations. I would like to know any wildcard characters like * or % which provides me the expected result.

 

Please help.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,665 views 16 7
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