Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getProjectFromEvent()

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Retrieves a structure containing information about a project that has been created or deleted.

Retrieves a structure containing information about a project that has been created or deleted.

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 version updated event, we cannot retrieve both of the information of the given projectversion, before and after the changes being made. This being said, it could be said to be, somehow

The routine is 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.

...

Return Type

JProject

Example

Code Block
languagejs
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.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "listener_routine" and space = currentSpace ( )
labelsarray_routines