Skip to end of banner
Go to start of banner

getProjectFromEvent

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Due to some differences between Jira's server REST API and the REST API from cloud, this routine will work slightly different here than it does on server. This happens because, in case of a project updated event, we cannot retrieve both of the information of the given project, before and after the changes being made. 

This being said, it could be said to be, somehow a combination of the server routines for the project events (getProjectFromEvent / getOldProjectFromEvent).  

Syntax

getProjectFromEvent()

Description

Retrieves a structure containing information about a project that has been created, deleted or updated (the new information of the project).

Return value

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.

  • No labels