Documentation

cookie

Allows add-ons to store, retrieve and erased cookies against the host JIRA / Confluence. These cannot be seen by other add-ons.

Methods

erase(name)

Remove the given cookie.

Parameters:
Name Type Description
name String

the name of the cookie to remove

read(name, callback)

Get the value of a cookie.

Parameters:
Name Type Description
name String

name of cookie to read

callback function

callback to pass cookie data

save(name, value, expires)

Save a cookie.

Parameters:
Name Type Description
name String

name of cookie

value String

value of cookie

expires Number

number of days before cookie expires