Webhooks
Administrators can now configure Gemini to post the data of newly created or updated items to a url.
Enable
Ensure the Webhooks app within Gemini is enabled by going to the Customize -> Apps -> Event Apps page.
Use
Administrators can add a url to call to and when to call it (create, update or both).
The webhooks app will post to the specified url an object with the 2 properties Issue and Previous each of type IssueDto:
{ "Issue": { "ResolvedDateRelative": "", "Votes": 0, "Revised": "2015-03-17T12:11:33+00:00", "Severity": "Trivial", "Title": "1", "AffectedVersionNumbers": "2008", "ProjectCode": "HELP", "TypeImage": "http://localhost/gemini/assets/images/meta/HELPDESK/type-enhancement.png", "BaseEntity": { "Votes": 0, "Errors": [], "IsExisting": true, "Title": "1", "OriginatorReply": 0, "AffectedVersions": "|19|", "Archived": false, "EstimatedMinutes": 0, "LoggedHours": 0, "SLAStatus": 3, "IsSubIssue": false, "StatusId": 85, "Resources": "", "TypeId": 66, "OriginatorData": "", "Description": "2", "IsNew": false, "Deleted": false, "Timestamp": "AAAAAAACqK0=", "PriorityId": 35, "Visibility": 1, "IsParent": false, "Repeated": "", "PercentComplete": 0, "ProjectId": 18, "Active": true, "Watchers": "|1|", "OriginatorType": 0, "Created": "2015-03-17T12:11:33+00:00", "ReportedBy": 1, "ResolutionId": 25, "SLAStatusTimePassed": 0, "Points": 0, "LoggedMinutes": 0, "Components": "|41|", "SLAId": 1, "EstimatedHours": 0, "Attachments": [], "HierarchyKey": "", "SeverityId": 37, "Tag1": "", "Tag2": "", "Tag3": "", "Revised": "2015-03-17T12:11:33+00:00", "SLAStatusDate": "2015-03-17T12:11:33", "Creator": 1, "HasErrors": false, "Id": 389 }, "Comments": [], "Priority": "Low", "EstimatedMinutes": 0, "FixedInVersion": "", "LoggedHours": 0, "Creator": "Manager Person", "SourceControlFiles": [], "Type": "Support Request", "ResolvedDateString": "", "Resources": [], "ExcessTimeOrTimeLeft": "0h 0m", "Status": "Unassigned", "ResourceNames": "", "OriginatorData": "", "Description": "2", "Reporter": "Manager Person", "ContentCustomFields": [], "LoggedIncludingKids": "0h 0m", "LastComment": "", "Visibility": "Everyone", "Elapsed": 0, "Repeated": "", "PercentComplete": 0, "CreatedRelative": "less than a minute ago", "SLATimePassedMinutes": 0, "SeverityImage": "http://localhost/gemini/assets/images/meta/HELPDESK/severity-trivial.png", "IsResolved": false, "ExcessTime": "", "EstimatedEffort": "0h 0m", "StartDateString": "", "StatusImage": "http://localhost/gemini/assets/images/meta/HELPDESK/status-unassigned.png", "Created": "2015-03-17T12:11:33+00:00", "Age": 0, "Project": { "Archived": false, "Errors": [], "IsExisting": true, "TemplateId": 12, "Description": "Supporting function for Client Projects", "LabelId": 6, "IsNew": false, "Deleted": false, "Timestamp": "AAAAAAAAtOw=", "EscapedCode": "HELP", "ResourceAssignmentMode": 1, "PermissionId": 2, "HasErrors": false, "Name": "Help Desk", "Created": "2009-12-18T10:42:52", "ComponentAssignmentMode": 1, "WorkflowId": 0, "LeadId": 1, "Active": true, "Options": { "PreviousTemplates": [ 12 ] }, "DescriptionRequired": true, "Code": "HELP", "Color": "#e010e0", "Revised": "2015-03-17T12:11:16.6337214Z", "ReadOnly": false, "Id": 18 }, "ComponentNames": "Workbench Module", "Reviser": "Manager Person", "InlineCustomFields": [ { "Name": "Customer", "Title": "Customer", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 27, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "User Application", "Title": "User Application", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 28, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Product Platform", "Title": "Product Platform (OS)", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 29, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Location", "Title": "Location", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 64, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "Issue", "Title": "Issue", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 65, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" } ], "LoggedMinutes": 0, "TimeEntries": [], "Components": [ { "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "Name": "Workbench Module", "Lead": -1, "Sequence": 0, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:17.168752Z", "IsNew": false, "IsChild": false, "ReadOnly": false, "Timestamp": "AAAAAAAACTQ=", "Active": true, "Description": "Management of marketing contacts database and Marketing Campaigns", "Id": 41, "Created": "2009-12-18T10:42:52", "IsExisting": true }, "HierarchyLevel": 0 } ], "SLATimeLeftMinutes": 30, "DueDateString": "", "EstimatedHours": 0, "PriorityImage": "http://localhost/gemini/assets/images/meta/HELPDESK/priority-low.png", "Resolution": "Unresolved", "Watchers": [ { "Username": "manager", "Fullname": "Manager Person", "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IsExisting": false, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "Active": true, "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IssueId": 389 }, "Email": "me@company.com" } ], "IssueKey": "HELP-389", "History": [], "ElapsedTime": "00:00:07.5350885", "HierarchyKey": "", "EscapedProjectCode": "HELP", "Attachments": [], "Links": [], "Sequence": 0, "Hierarchy": [], "ProjectName": "Help Desk", "IsExcessTime": false, "ClosedDateString": "", "RevisedString": "17/03/2015 12:11:33", "CreatedString": "17/03/2015 12:11:33", "CustomFields": [ { "Name": "Customer", "Title": "Customer", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 27, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "User Application", "Title": "User Application", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 28, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Product Platform", "Title": "Product Platform (OS)", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 29, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Location", "Title": "Location", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 64, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "Issue", "Title": "Issue", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 65, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" } ], "IsClosed": false, "ClosedDateRelative": "", "RemainingTime": "0h 0m", "Points": 0, "RevisedRelative": "less than a minute ago", "EstimatedIncludingKids": "0h 0m", "TimeLogged": "0h 0m", "SLA": { "Archived": false, "Errors": [], "IsExisting": true, "FormattedTime3": "000:30", "StartDayMinute": 0, "ResumeRules": 4, "Is24x7": true, "Description": "Standard", "IsNew": false, "Deleted": false, "StartOfDay": "00:00", "StartDayHour": 0, "EndDayMinute": 0, "Active": true, "FormattedTime": "00:30", "HasErrors": false, "Name": "Standard", "Created": "2014-06-13T11:42:26", "PauseRules": 2, "EndOfDay": "00:00", "Time": 30, "EndDayHour": 0, "Revised": "2015-03-17T12:11:16.9447392Z", "Sequence": 0, "EntryRules": 1, "StopRules": 3, "Id": 1 }, "Id": 389 }, "Previous": { "ResolvedDateRelative": "", "Votes": 0, "Revised": "2015-03-17T12:11:33+00:00", "Severity": "Trivial", "Title": "1", "AffectedVersionNumbers": "2008", "ProjectCode": "HELP", "TypeImage": "http://localhost/gemini/assets/images/meta/HELPDESK/type-enhancement.png", "BaseEntity": { "Votes": 0, "Errors": [], "IsExisting": true, "Title": "1", "OriginatorReply": 0, "AffectedVersions": "|19|", "Archived": false, "EstimatedMinutes": 0, "LoggedHours": 0, "SLAStatus": 3, "IsSubIssue": false, "StatusId": 85, "Resources": "", "TypeId": 66, "OriginatorData": "", "Description": "2", "IsNew": false, "Deleted": false, "Timestamp": "AAAAAAACqK0=", "PriorityId": 35, "Visibility": 1, "IsParent": false, "Repeated": "", "PercentComplete": 0, "ProjectId": 18, "Active": true, "Watchers": "|1|", "OriginatorType": 0, "Created": "2015-03-17T12:11:33+00:00", "ReportedBy": 1, "ResolutionId": 25, "SLAStatusTimePassed": 0, "Points": 0, "LoggedMinutes": 0, "Components": "|41|", "SLAId": 1, "EstimatedHours": 0, "Attachments": [], "HierarchyKey": "", "SeverityId": 37, "Tag1": "", "Tag2": "", "Tag3": "", "Revised": "2015-03-17T12:11:33+00:00", "SLAStatusDate": "2015-03-17T12:11:33", "Creator": 1, "HasErrors": false, "Id": 389 }, "Comments": [], "Priority": "Low", "EstimatedMinutes": 0, "FixedInVersion": "", "LoggedHours": 0, "Creator": "Manager Person", "SourceControlFiles": [], "Type": "Support Request", "ResolvedDateString": "", "Resources": [], "ExcessTimeOrTimeLeft": "0h 0m", "Status": "Unassigned", "ResourceNames": "", "OriginatorData": "", "Description": "2", "Reporter": "Manager Person", "ContentCustomFields": [], "LoggedIncludingKids": "0h 0m", "LastComment": "", "Visibility": "Everyone", "Elapsed": 0, "Repeated": "", "PercentComplete": 0, "CreatedRelative": "less than a minute ago", "SLATimePassedMinutes": 0, "SeverityImage": "http://localhost/gemini/assets/images/meta/HELPDESK/severity-trivial.png", "IsResolved": false, "ExcessTime": "", "EstimatedEffort": "0h 0m", "StartDateString": "", "StatusImage": "http://localhost/gemini/assets/images/meta/HELPDESK/status-unassigned.png", "Created": "2015-03-17T12:11:33+00:00", "Age": 0, "Project": { "Archived": false, "Errors": [], "IsExisting": true, "TemplateId": 12, "Description": "Supporting function for Client Projects", "LabelId": 6, "IsNew": false, "Deleted": false, "Timestamp": "AAAAAAAAtOw=", "EscapedCode": "HELP", "ResourceAssignmentMode": 1, "PermissionId": 2, "HasErrors": false, "Name": "Help Desk", "Created": "2009-12-18T10:42:52", "ComponentAssignmentMode": 1, "WorkflowId": 0, "LeadId": 1, "Active": true, "Options": { "PreviousTemplates": [ 12 ] }, "DescriptionRequired": true, "Code": "HELP", "Color": "#e010e0", "Revised": "2015-03-17T12:11:16.6337214Z", "ReadOnly": false, "Id": 18 }, "ComponentNames": "Workbench Module", "Reviser": "Manager Person", "InlineCustomFields": [ { "Name": "Customer", "Title": "Customer", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 27, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "User Application", "Title": "User Application", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 28, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Product Platform", "Title": "Product Platform (OS)", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 29, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Location", "Title": "Location", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 64, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "Issue", "Title": "Issue", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 65, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" } ], "LoggedMinutes": 0, "TimeEntries": [], "Components": [ { "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "Name": "Workbench Module", "Lead": -1, "Sequence": 0, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:17.168752Z", "IsNew": false, "IsChild": false, "ReadOnly": false, "Timestamp": "AAAAAAAACTQ=", "Active": true, "Description": "Management of marketing contacts database and Marketing Campaigns", "Id": 41, "Created": "2009-12-18T10:42:52", "IsExisting": true }, "HierarchyLevel": 0 } ], "SLATimeLeftMinutes": 30, "DueDateString": "", "EstimatedHours": 0, "PriorityImage": "http://localhost/gemini/assets/images/meta/HELPDESK/priority-low.png", "Resolution": "Unresolved", "Watchers": [ { "Username": "manager", "Fullname": "Manager Person", "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IsExisting": false, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "Active": true, "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IssueId": 389 }, "Email": "me@company.com" } ], "IssueKey": "HELP-389", "History": [], "ElapsedTime": "00:00:07.5350885", "HierarchyKey": "", "EscapedProjectCode": "HELP", "Attachments": [], "Links": [], "Sequence": 0, "Hierarchy": [], "ProjectName": "Help Desk", "IsExcessTime": false, "ClosedDateString": "", "RevisedString": "17/03/2015 12:11:33", "CreatedString": "17/03/2015 12:11:33", "CustomFields": [ { "Name": "Customer", "Title": "Customer", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 27, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "User Application", "Title": "User Application", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 28, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Product Platform", "Title": "Product Platform (OS)", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 29, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "C" }, { "Name": "Location", "Title": "Location", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 64, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" }, { "Name": "Issue", "Title": "Issue", "FormattedData": "", "ShowInline": true, "BaseEntity": { "Archived": false, "Errors": [], "HasErrors": false, "IssueId": 389, "IsNew": true, "Deleted": false, "ProjectId": 18, "Revised": "2015-03-17T12:11:38.8239906Z", "UserId": 1, "CustomFieldId": 65, "Active": true, "Data": "", "Id": 0, "Created": "2015-03-17T12:11:38.8239906Z", "IsExisting": false }, "CreatedRelative": "less than a minute ago", "Type": "L" } ], "IsClosed": false, "ClosedDateRelative": "", "RemainingTime": "0h 0m", "Points": 0, "RevisedRelative": "less than a minute ago", "EstimatedIncludingKids": "0h 0m", "TimeLogged": "0h 0m", "SLA": { "Archived": false, "Errors": [], "IsExisting": true, "FormattedTime3": "000:30", "StartDayMinute": 0, "ResumeRules": 4, "Is24x7": true, "Description": "Standard", "IsNew": false, "Deleted": false, "StartOfDay": "00:00", "StartDayHour": 0, "EndDayMinute": 0, "Active": true, "FormattedTime": "00:30", "HasErrors": false, "Name": "Standard", "Created": "2014-06-13T11:42:26", "PauseRules": 2, "EndOfDay": "00:00", "Time": 30, "EndDayHour": 0, "Revised": "2015-03-17T12:11:16.9447392Z", "Sequence": 0, "EntryRules": 1, "StopRules": 3, "Id": 1 }, "Id": 389 } }