Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I'm searching a way to get an organization (customfield_10002) id using Rest API.

Ilia Rahmilov July 17, 2024

The scenario is:
Ticket are opened automatically using a API,
when opening the ticket I know the name of the organization but not the id.
I would like to search for the organization id using the name I already have.

couldn't find the way.
Does anyone know of any way I could extract the organization ID based on the organization name using api?

1 answer

0 votes
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2024

Hi @Ilia Rahmilov ,

Welcome to the community !!

Go to your service project settings --> Customers. 
You can see the Organizations mapped to your project. Click on the name and new page opens. It will have the ID

image.png        image.png

Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2024

To see all the organization in your Jira instance, go to Admin settings --> Products --> Organization. 

Direct url: https://<baseURL>.atlassian.net/jira/settings/products/servicedesk/organizations

Ilia Rahmilov July 17, 2024

Hi Rilwan,

I need to find it with API, not with the GUI.
Is it possible?

THX

Sandhya Thottamkara
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2024

Hi Ilia, 

You may try using this experimental api - 

GET /rest/servicedeskapi/organization

Cheers!
Sandhya

Ilia Rahmilov July 18, 2024

Hi Sandhya,

The experimental api does not have the option to search organization by its name.

still stuck.

Thank you  

Sandhya Thottamkara
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2024

Hey Ilia,

Yes, unfortunately this cannot take name as a parameter and get you the results for organization id. We do not have an api for this as of now.

Cheers!
Sandhya

Like Rilwan Ahmed likes this
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2024
Ilia Rahmilov July 18, 2024

Thank you,
hopefully this option will added in the future

Like Rilwan Ahmed likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events