-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwebhook-template.json
1 lines (1 loc) · 10.5 KB
/
webhook-template.json
1
{"id":"stride_simple","description":"Atlassian Stride Simple Message","status":"USER_DEFINED","format":"jsonTemplate","rank":100,"href":"/app/rest/webhooks/templates/id:stride_simple","preferredDateFormat":"","toolTip":"Sends simple messages to Atlassian Stride","templateItem":[{"id":"0","href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0","templateText":{"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/templateContent","content":"{\n \"version\": 1,\n \"type\": \"doc\",\n \"content\": [\n {\n \"type\": \"paragraph\",\n \"content\": [\n {\n \"type\": \"emoji\",\n \"attrs\": {\n \"shortName\": \":white_check_mark:\",\n \"id\": \"2705\",\n \"text\": \"✅\"\n }\n },\n {\n \"type\": \"text\",\n \"text\": \" \"\n },\n {\n \"type\": \"text\",\n \"text\": \"${projectName}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${rootUrl}/project.html?projectId=${projectId}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: \"\n },\n {\n \"type\": \"text\",\n \"text\": \"${buildName}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${rootUrl}/viewType.html?buildTypeId=${buildExternalTypeId}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: \"\n },\n {\n \"type\": \"text\",\n \"text\": \"Build #${buildNumber}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${buildStatusUrl}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: ${capitalise(buildStateDescription)} : ${capitalise(buildResult)}\"\n }\n ]\n }\n ]\n }","useTemplateTextForBranch":true},"branchTemplateText":{"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/branchTemplateContent","content":""},"buildState":[{"type":"buildStarted","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/buildStarted"},{"type":"changesLoaded","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/changesLoaded"},{"type":"buildInterrupted","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/buildInterrupted"},{"type":"beforeBuildFinish","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/beforeBuildFinish"},{"type":"buildSuccessful","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/buildSuccessful"},{"type":"buildFailed","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/buildFailed"},{"type":"buildFixed","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/buildFixed"},{"type":"buildBroken","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/buildBroken"},{"type":"responsibilityChanged","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:0/buildStates/responsibilityChanged"}]},{"id":"1","href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1","templateText":{"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/templateContent","content":"{\n \"version\": 1,\n \"type\": \"doc\",\n \"content\": [\n {\n \"type\": \"paragraph\",\n \"content\": [\n {\n \"type\": \"emoji\",\n \"attrs\": {\n \"shortName\": \":failed:\",\n \"id\": \"274C\",\n \"text\": \"❌\"\n }\n },\n {\n \"type\": \"text\",\n \"text\": \" \"\n },\n {\n \"type\": \"text\",\n \"text\": \"${projectName}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${rootUrl}/project.html?projectId=${projectId}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: \"\n },\n {\n \"type\": \"text\",\n \"text\": \"${buildName}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${rootUrl}/viewType.html?buildTypeId=${buildExternalTypeId}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: \"\n },\n {\n \"type\": \"text\",\n \"text\": \"Build #${buildNumber}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${buildStatusUrl}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: ${capitalise(buildStateDescription)} : ${capitalise(buildResult)}\"\n }\n ]\n }\n ]\n }","useTemplateTextForBranch":true},"branchTemplateText":{"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/branchTemplateContent","content":""},"buildState":[{"type":"buildStarted","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/buildStarted"},{"type":"changesLoaded","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/changesLoaded"},{"type":"buildInterrupted","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/buildInterrupted"},{"type":"beforeBuildFinish","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/beforeBuildFinish"},{"type":"buildSuccessful","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/buildSuccessful"},{"type":"buildFailed","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/buildFailed"},{"type":"buildFixed","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/buildFixed"},{"type":"buildBroken","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/buildBroken"},{"type":"responsibilityChanged","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:1/buildStates/responsibilityChanged"}]},{"id":"2","href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2","templateText":{"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/templateContent","content":"{\n \"version\": 1,\n \"type\": \"doc\",\n \"content\": [\n {\n \"type\": \"paragraph\",\n \"content\": [\n {\n \"type\": \"emoji\",\n \"attrs\": {\n \"shortName\": \":information_source:\",\n \"id\": \"2139\",\n \"text\": \"ℹ\"\n }\n },\n {\n \"type\": \"text\",\n \"text\": \" \"\n },\n {\n \"type\": \"text\",\n \"text\": \"${projectName}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${rootUrl}/project.html?projectId=${projectId}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: \"\n },\n {\n \"type\": \"text\",\n \"text\": \"${buildName}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${rootUrl}/viewType.html?buildTypeId=${buildExternalTypeId}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: \"\n },\n {\n \"type\": \"text\",\n \"text\": \"Build #${buildNumber}\",\n \"marks\": [\n {\n \"type\": \"link\",\n \"attrs\": {\n \"href\": \"${buildStatusUrl}\"\n }\n }\n ]\n },\n {\n \"type\": \"text\",\n \"text\": \" :: ${capitalise(buildStateDescription)} : ${capitalise(buildResult)}\"\n }\n ]\n }\n ]\n }","useTemplateTextForBranch":true},"branchTemplateText":{"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/branchTemplateContent","content":""},"buildState":[{"type":"buildStarted","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/buildStarted"},{"type":"changesLoaded","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/changesLoaded"},{"type":"buildInterrupted","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/buildInterrupted"},{"type":"beforeBuildFinish","enabled":true,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/beforeBuildFinish"},{"type":"buildSuccessful","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/buildSuccessful"},{"type":"buildFailed","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/buildFailed"},{"type":"buildFixed","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/buildFixed"},{"type":"buildBroken","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/buildBroken"},{"type":"responsibilityChanged","enabled":false,"href":"/app/rest/webhooks/templates/id:stride_simple/templateItems/id:2/buildStates/responsibilityChanged"}]}]}