Forums

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

Filter Function URL is not working and getting 400 status

Bhagavan Goud
Contributor
February 15, 2022

The URL Connection is getting closedScreenshot (198).png

 

function CreateFilter(keyValue,projectKey,boxId)
{

AJS.$.ajax
({
url: baseUrl +'/rest/api/3/filter',
type: "POST",
timeout: 0,
dataType: 'json',
processData: false,
headers: {
"Content-Type": "application/json; charset=utf-8",
'Accept': 'application/json',
"Access-Control-Allow-Origin": "*"
},

data: JSON.stringify({"name":keyValue+"-BigPicture","jql":"\"Project ebm-papst\" = "+keyValue,"favourite":true}),

success: function (response)
{
filter={name:response.name,url:response.viewUrl,value:response.id};
getUserKey(filter,boxId);
console.log(JSON.stringify(response));
alert("box added");
},

error: function (response)
{
console.log(JSON.stringify(response));

}


});

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events