I'm using JIRA cloud. Trying to use the API to create JIRA issues, but I got following error when I

Mallikarjun October 1, 2020

{"parameters":{},"headers":{"X-Atlassian-Token":"no-check","x-allow-cross-system":1,"Authorization":"BearerToken XXXX","Content-Type":"application/json","username":"mallikarjun.surimilla@adventglobal.com","password":"tokenvalue"},"data":{},"body":{"issue":{"fields":{"project":{"key":"ANS"},"summary":"REST API from Server Script.","description":"Creating of an issue using project keys and issue type names using the REST API","issuetype":{"name":"Bug"}}}},"json":true}
2020-10-01T18:56:35.044Z - error: Error in request: Request failed with status code 400
Script 'connectJira' aborted with exit code null and signal 'SIGINT'. { success: false, e: {} }

 

where i am able to connect using Postman and able to create an issue.

1 comment

Prince Nyeche
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.
October 1, 2020

Hi @Mallikarjun 

Please can you let us know how you're posting this request via curl, postman or otherwise?  And what's the actual request you're sending and to which endpoint?

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events