title: OAuth 2.0 is not enabled for method Error with jira cloud with App-script
body: <p>I have implemented oauth2 (3LO) using App-script for integrating Google Sheet and Jira. I have set var SCOPE = <code>read:jira-user read:jira-work write:jira-work</code></p>
  <p>When I use any get request, system works fine. But when I try to make put or post request, system throws error. See this image below:
  [<img src="https://i.stack.imgur.com/C4u6S.png" alt="enter image description here" />][<code>enter code here</code>1]</p>
  <p>See here my put request for edit an issue</p>
  <p><a href="https://i.stack.imgur.com/wQ5dW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wQ5dW.png" alt="enter image description here" /></a></p>
  <p>I am not sure what is the issue here. I have checked that I have enabled oauth2 and as an administrator, I have all power. I have also proper scope. And this configuration works for any get request but it does not work with POST and PUT requests.</p>
  <p><strong>Could you please let me know if you have an idea or clue how I can make it work or is there anything I can check to make sure my confirmation is right for POST or PUT requests?</strong></p>
  <pre><code>function updateIssue() {
    var service = getService();
    var issueIdOrKey = 'CP-16'
  
    Logger.log(service.hasAccess());
  
    if (service.hasAccess()) {
  
      var data = `{
  
        &quot;summary&quot;:&quot;New summary version 1&quot;
  
      }`;
  
      var route = `/rest/api/3/issue/${issueIdOrKey}`;
      var cloudid = getCloudId(service);
  
      var url = 'https://api.atlassian.com/ex/jira/' + cloudid + route;
  
      Logger.log(url);
    
        var response = UrlFetchApp.fetch(url, {
       'Method': 'PUT',
        headers: {
        //'Method': 'PUT',
        'Accept': 'application/json',
        'Authorization': 'Bearer ' + service.getAccessToken(),
        // Convert the JavaScript object to a JSON string.
        'ContentType': 'application/json' //, 'payload': JSON.stringify(data)
  
        },
        'payload': JSON.stringify(data)
      });
  
  
      var result = JSON.parse(response.getContentText());
  
      Logger.log(JSON.stringify(result, null, 2));
     
    }
  
  }
  </code></pre>
  <p>Thank you</p>