Listener Context
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 functions |
---|---|
Issue Created / Updated / Deleted | Issue context for create and update. You may use all issues variables Additional supporting functions:
For Issue Update event you may use the following functions:
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 functions:
|
Issue Link Added / Deleted | Issue context. You may use all issues variables Additional supporting functions:
|
Project Created / Updated / Deleted | Global context. Using issue variables will error Additional supporting functions:
|
Version Created / Updated / Deleted / Released / Unreleased | Global context. Using issue variables will error Additional supporting functions:
|
User Created / Updated / Deleted | Global context. Using issue variables will error Additional supporting functions:
|