Due to the support offered by Atlassian and some of their restriction, not all the events triggered on server are also available on the cloud version. This being said, the listener routines are working a little bit different on cloud than on server.
Routines available
getProjectFromEvent
Retrieves a structure containing information about a project that has been created, deleted or updated (the new information of the project).
Has the same syntax as on server: getProjectFromEvent()
The return value is the same as on server: a JProject value containing the component data.
Example
...
logPrint(
"INFO"
,
"Result of listener: "
+ getProjectFromEvent());
The result is a structure containing project id, key, name, description, lead, url, avatar id, project category and type, and information about whether the project issues are unassigned by default.
getVersionFromEvent
Retrieves a structure containing information about a version that has been created, deleted or updated (the new information of the version).
Has the same syntax as on server: getVersionFromEvent()
The return value is the same as on server: a JVersion value containing the version data.
Example
...
logPrint(
"INFO"
,
"Result of listener: "
+ getVersionFromEvent());
The result is a structure containing version id, name, description, project key of the version, start date and release dates, and information about whether the version is archieved or released.
getUserFromEvent
Retrieves a structure containing information about an user that has been created, deleted or updated (the new information of the user).
...
The return value is a JUser value containing the user data.
Code Block |
---|
logPrint("INFO", "Result of listener: " + getUserFromEvent()); |
...
Child pages (Children Display) |
---|