Forums

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

Error: "summary":"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.

sukumar salla
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!
August 1, 2019

Hi

I get this error when I am trying to create a Jira issue via REST API from salesforce.

This is the sample code:

HttpRequest request = new HttpRequest();
Http http = new Http();
string username = 'xxxxxxx';
string password = 'xxxxxxx';
Blob headerValue = Blob.valueOf(username + ':' + password);
String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);
request.setEndpoint('https://xxxxxx.atlassian.net/rest/api/3/issue/');
request.setHeader('Authorization', authorizationHeader);
request.setMethod('POST');
request.setHeader('Content-Type', 'application/json');
request.setBody('{"fields":{"summary":"TEST API","project":{"id":"100"},"issuetype":{"id":"1000"}}');
HttpResponse response = http.send(request);

And, the user using for the callout has got full permissions and were able to create jira issues through postman without any errors.

Thanks

 

1 answer

1 vote
Roman Kersky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2019

HI. Please check there is a field 'summary' on the creation screen. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events