I am not able to invoke rest service using ajax call in .vm file

Deleted user July 24, 2019

 

I am not able to invoke rest service using ajax call in .vm file ,we have attached code snippet along with the error received while making the ajax call.

we also referred below link, but the issue still persisted.

https://community.atlassian.com/t5/Answers-Developer-Questions/AJS-ajax-call-producing-ParseErrorException/qaq-p/537171

Thanks & Regards,
Amit JajaxCall.PNGerror_Logs.PNG

1 answer

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2019

Javascript does not belong in a velocity file. There are no good workarounds, some things work and some don't. If you are writing a plugin, why don't you just include a JS file??

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events