I want to automate creating filters in Jira, therefore I've tried creating a filter through JIRA API
I'm using this POST method:
https://docs.atlassian.com/jira/REST/6.1.7/#d2e1822
However no matter what I do I keep getting http 415 error - unsupported media type.
I have tried setting headers to accept:applicationc/json.
I have also tried empty headers_array, I have tried headers_array= "Accept|text/plain" . No matter what I do I still get 415 error.
I have tried calling it through SIL script and fiddler.
Even pasting directly the content from the API documentation gives me 415 error:
{
"name": "All Open Bugs",
"description": "Lists all open bugs",
"jql": "type = Bug and resolution is empty",
"favourite": true
}
Any suggestions what might be wrong?
Community moderators have prevented the ability to post new answers.
Are you using the following header?
'Content-Type: application/json'
That helped :) I've been using "Accept: application/json"... Thanks! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.