Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt | ||
---|---|---|
| ||
Getting the issue context from SIL Listener events. |
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:
Code Block |
---|
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 routinesfunctions |
---|---|
Issue Created / Updated / Deleted | Issue context for create and update. You may use all issues variables Additional supporting routinesfunctions:
For Issue Update event you may use the following routinesfunctions:
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 routinesfunctions:
|
Issue Link Added / Deleted | Issue context. You may use all issues variables Additional supporting routinesfunctions:
|
Project Created / Updated / Deleted | Global context. Using issue variables will error Additional supporting routinesfunctions:
|
Version Created / Updated / Deleted / Released / Unreleased | Global context. Using issue variables will error Additional supporting routinesfunctions:
|
User Created / Updated / Deleted | Global context. Using issue variables will error Additional supporting routinesfunctions:
|
Contents:
Table of Contents |
---|
See also:
Child pages (Children Display) | ||
---|---|---|
|