Variable replacments in the JSON Data of Callbacks
- $eventType$ (String) - replaced by the eventpattern of the current handler
- Note: You have to quote this replacement in your JSON data
- $changedFields$ (JSON Array) - replaced by a list of all fieldchanges that occurred with the Jira event
- Every entry contains field, oldValue and newValue. The values are the string representations of the original values of a field or null
Structure:
[ { "field": "fieldname", "oldValue": "old value", "newValue": "new value" }, { "field": "other fieldname", "oldValue": "other old value", "newValue": "other new value" } ]
- $worklogId$ (String) - contains the worklog id if the triggering event was an worklog event
- $commentId$ (String) - contains the comment id if the triggering event was an comment event
- $issueKey$ (String) - contains the issue key if the triggering event was an issue event
- $userKey$ (String) - replaced by the key of the user who triggert the original Jira event
- $username$ (String) - replaced by the username of the user who triggert the original Jira event
- $userDisplayName$ (String) - replaced by the displayname of the user who triggert the original Jira event
Example
This is JSON that can be used as a payload for a callback to a Teamworkx Connector app on another Jira Server. There it coud be handled as incoming event
{ "form": { "identity": "EVENT", "type": "EXTERNAL_EVENT", "title": "Event form", "key": "/event/ISSUECREATED", "attributevalues": [ { "control": "required", "attribute": "MODE", "position": "0001", "type": "string", "title": "Mode", "value": "async" }, { "control": "required", "attribute": "OBJECTKEY", "position": "0002", "type": "String", "title": "Remote Object Key", "value": "/issue/$issueKey$" } ] } }