Skip to end of banner
Go to start of banner

Listener Context

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

« Previous Version 12 Current »

Arguments

Any script that processes an event will receive as parameters in the argv the following:

Position

Parameters

0

user - the calling user

1

eventId - the internal event id

2

eventName - the event name

You can always get this information directly in your script:

string callingUser = argv[0];
string eventName = argv[2];

SIL Context. Extracting the information from event

As mentioned, context is determined through the event type.

Events

Context/Available routines

Issue Created / Updated / Deleted

Issue context for create and update. You may use all issues variables

Additional supporting routines:

  • getEventName

For Issue Update event you may use the following routines:

  • getEventIssueChanges

  • getEventIssueFieldChange

  • isIssueFieldChanged

For Issue Deleted - Global context. Using issue variables will error, since the issue is already deleted

Issue Commented / Issue Comment Added / Deleted

Issue context. You may use all issues variables

Additional supporting routines:

  • getEventName

  • getIssueLinkFromEvent

Issue Link Added / Deleted

Issue context. You may use all issues variables

Additional supporting routines:

  • getEventName

  • getIssueLinkFromEvent

Project Created / Updated / Deleted

Global context. Using issue variables will error

Additional supporting routines:

  • getEventName

  • getProjectFromEvent

Version Created / Updated / Deleted / Released / Unreleased

Global context. Using issue variables will error

Additional supporting routines:

  • getEventName

  • getVersionFromEvent

User Created / Updated / Deleted

Global context. Using issue variables will error

Additional supporting routines:

  • getEventName

  • getUserFromEvent

  • No labels