Versions Compared

Key

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

...

The next elements in the array after these are event-specific and are detailed in the following table.

Event

Additional Parameters

Notes

Version Archived

4. version ID

5. string representation of a Version structure. You can retrieve this value and then cast it to a "Version" structure.

Version v = (Version) argv[4];


To get a structure with the changed version, use the getVersionFromEvent routine.

Version Created

Version Moved

Version Released

Version Unarchived

Version Unreleased

Version Merged

4. version ID

5. string representation of a Version structure. You can retrieve this value and then cast it to a "Version" structure.

6. merged version ID

7. string representation of the merged version (cast-able to Version, similar to 5).

Even though you can merge multiple versions into one at once, Jira API only provides reference to a single merged version.

To get a structure with the merged version, you can use the following routines: getMergeToVersionFromEvent, getVersionFromEvent.


Version Updated


To get a structure with the updated version, you can use the getOldVersionFromEvent routine.

Version Deleted

4. version ID

5. empty (the version is already deleted at this point and details are no longer available)

To get a structure with the deleted version, you can use the following routines: getMergeToVersionFromEvent, getFixVersionSwappedToFromEvent, getAffectsVersionSwappedToFromEvent.

Project Created

4. project ID

5. string representation of a Project structure. You can retrieve this value and then cast it to a "Project" structure

To get a structure with the created project, you can use the getProjectFromEvent routine.

Project Deleted

4. project ID

5. project KEY (the project is already deleted at this point and details are no longer available)

To get a strucure with the deleted project, you can use the getProjectFromEvent routine.

Project Updated


To get a structure with the updated project, you can use the getOldProjectFromEvent routine.

Component Created


To get a structure with the created component, you can use the getComponentFromEvent routine.

Component Merged


To get a structure with the merged component, you can use the getComponentFromEvent or getMergeToComponentFromEvent routine.

Component Deleted


To get a strucure with the deleted component, you can use the getComponentFromEvent routine.

Component Updated


To get a strucure with the updated component, you can use the getOldComponentFromEvent routine.

User Created


To get a strucure with the created user, you can use the getNewUserFromEvent routine.

User Updated


To get structures with the updated user, you can use the getNewUserFromEvent and getOldUserFromEvent routines.

User Deleted


To get a structure with the deleted user, you can use the getDeletedUsernameFromEvent routine.