Sending system: SM
Receiving system: Atlassian Jira
I am building a REST request from SM to the external system Jira. The goal is to create a record in Jira.
I have managed to create the record using curl in a batch file:
Batch file contents:
curl -u "username:pass" -X "POST" https://jira.ourdomain.com/rest/api/latest/issue/ -H "Content-Type:application/json" -d .txt
I can run the batch file from the command line. It will open a session to the remote Jira server and open a new Jira record. The -d .txt will read the json.txt file and push that request to the Jira server
"key": "Project 344"
"summary": "LB dosent write to Event Log",
"description": "Logging is not configured for the LB server",
Now the question: have anyone done something similar but using java script in SM instead?
(I know this is build in when using SMAX but we are using SMA-SM)