Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

JIRA REST API to add organizations to a project

Assandra Falls
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2018

I am creating organizations in Jira ServiceDesk using the JIRA Service Desk Cloud API (POST /rest/servicedeskapi/organization),  which responses with an ID for the organization.

However, when creating a new issue for a project in JIRA with the JIRA REST API (POST rest/api/issue). The provided ID is not recognized  when set to  the organizations field (through its customfield).

However when I add the organization to the project via the UI, and attempt to create the issue again, the ID is recognized.

So my question is, is there an API call which will add organizations to a project?

 

1 answer

1 vote
Lachlan G
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2018

Organizations are created for the whole instance but have to be added to a project before you can use them there.

 

You'll have to make a separate call to another API https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-servicedesk-serviceDeskId-organization-post to associate the organization with the project before you can use it.

 

- Lachlan Goodhew -Cook

Jira Service Desk Server

Suggest an answer

Log in or Sign up to answer