You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 12 Current »
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];
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
getIssueLinkFromEvent
Issue Link Added / Deleted
Project Created / Updated / Deleted
Global context. Using issue variables will error
getProjectFromEvent
Version Created / Updated / Deleted / Released / Unreleased
getVersionFromEvent
User Created / Updated / Deleted
getUserFromEvent
Contents:
See also: