The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events