Disable STP

fetch(
  '$YOUR_JIRA_BASE_URL/rest/issuehub/4.0/config/feature.syncPriorities',
  {
      method: 'PUT',
      headers: { 'Content-Type': 'text/plain' },
      body: 'false'
    }
  )
  .then(async response => {
    const isJson = response.headers.get('content-type')?.includes('application/json');
    const data = isJson && await response.json();

    // check for error response
    if (!response.ok) {

      console.log("#response error "+ data.message)
      // get error message from body or default to response status
      const error = (data && data.message) || response.status;
      return Promise.reject(error);
    }

    console.log("#response "+ data.message);
  })
  .catch(error => {console.error('There was an error!', error);});