https://docs.atlassian.com/aui/latest/docs/helper.html says that AJS.Cookies is deprecated. But no any additional info of the reasons (why it is deprecated) and, which is more important - no info about substitution (or no substitution).
For now I am using JIRA 6.3.4 and planning to move to the latest one. So I am curious about if I need to re-write my plugin's client code to migrate from AJS.Cookies.
Thank you for answers.
Community moderators have prevented the ability to post new answers.
When I execute the code AJS.Cookie.read("COOKIES_ARE_COOL") in the browser's console, the output says:
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead.
So I guess they just want you to use AJS.cookie instead of AJS.Cookie.
Hope this helps.
Cheers
Remo
@Remo Your answer is not the best. AJS.cookie === AJS.Cookie returns true, so they are the same function. Not clear on what you are saying.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of criticizing other user's answers, you could have tried to write a better one.
Of course they are the same function. Atlassian just renamed AJS.Cookie to AJS.cookie and want you to use AJS.cookie from now on. Pretty obvious IMHO if you would have spent another minute on it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for bringing this issue to my attention. I shall stride to spend an extra minute when reading your answers ;0)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries, maybe I should have been more clear in my answer.
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.