function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srinivas Bandi 4Srinivas Bandi 4 

System.HttpResponse[Status=null, StatusCode=401]

Hi All, 

when try to integrate Jira with Salesforce, I am getting  System.HttpResponse[Status=null, StatusCode=401] error, any suggestion.

Thanks 
 
Raj VakatiRaj Vakati
Set the content type header 
 
req.setHeader('Accept', 'application/json');

 
Raj VakatiRaj Vakati
Its POST operation not get .Update the setmethod to post
req.setMethod('POST');