Using the first example in the link to the JIRA API.
create your data in Mathematica:
data = {"fields" -> {
"project" -> {"key" -> "TEST"},
"summary" -> "REST ye merry gentlemen.",
"description" ->
"Creating of an issue using project keys and issue type names
using the REST API", "issuetype" -> {"name" -> "Bug"}
}
}
convert the Mathematica data to JSON:
jsondata = ExportString[data, "JSON"]
(* {
"fields": {
"project": {
"key": "TEST"
},
"summary": "REST ye merry gentlemen.",
"description": "Creating of an issue using project keys and issue type names using the REST API",
"issuetype": {
"name": "Bug"
}
}
} *)
Now post the data to the URL:
URLFetch["http://localhost:8090/rest/api/2/issue/",
"Method" -> "POST",
"Headers" -> {"Content-Type" -> "application/json"},
"Username" -> "fred",
"Password" -> "fred",
"Body" -> jsondata
]
URLFetch. You would have to use your JSON data in the"Body"option. What have you tried so far? (related REST API usage examples: mathematica.stackexchange.com/questions/40731/…) $\endgroup$ExportStringto convert to JSON then add that toURLFetch. I don't have access to a JIRA to try but can write a conceptual answer for you to try if you like. I'll be away for 4-5 hours but when I get back $\endgroup$