두레이 웹 훅 확인
두레이 포맷
업무 생성
{
"webhookType": "postCreated",
"tenant": {
"id": "1534539604531797824"
},
"hookEventType": "postCreated",
"version": 2,
"project": {
"id": "3119639999175643633",
"code": "온라인-광고"
},
"source": {
"type": "member",
"member": {
"id": "3118892665733691672",
"name": "곽상용",
"userCode": "bravo.gwak",
"emailAddress": "bravo.gwak@demo.dooray.info"
}
},
"post": {
"createdAt": "2022-01-02T12:00:26.453+09:00",
"dueDate": null,
"dueDateFlag": true,
"updatedAt": "2022-01-02T12:00:26.453+09:00",
"priority": "none",
"parent": {
"id": null,
"number": null,
"subject": null,
"dueDate": null,
"dueDateFlag": null,
"workflowClass": null
},
"body": {
"mimeType": "text/x-markdown",
"content": "",
"emptyContent": true
},
"users": {
"from": {
"type": "member",
"member": {
"organizationMemberId": "3118892665733691672",
"lastActionAt": "2022-01-02T12:00:26+09:00",
"name": "곽상용",
"read": false,
"idProviderId": 5,
"idProviderUserId": "d4208306-c5c9-4f5b-9fd0-958244e788f3"
}
},
"to": [
{
"type": "member",
"member": {
"organizationMemberId": "3118892665733691672",
"lastActionAt": "2022-01-02T12:00:27+09:00",
"name": "곽상용",
"read": false,
"workflowId": "3119641030405899063",
"idProviderId": 5,
"idProviderUserId": "d4208306-c5c9-4f5b-9fd0-958244e788f3"
}
}
],
"cc": [],
"me": {
"type": "member",
"member": {
"organizationMemberId": "3118892665733691672",
"lastActionAt": "2022-01-02T12:00:27+09:00",
"name": "곽상용",
"read": false,
"workflowId": "3119641030405899063",
"idProviderId": 5,
"idProviderUserId": "d4208306-c5c9-4f5b-9fd0-958244e788f3"
}
}
},
"tags": null,
"id": "3177507624414006818",
"subject": "웹 훅 테스트 6",
"number": 27
}
}
담당자 변경
{
"webhookType": "postUserChanged",
"tenant": {
"id": "1534539604531797824"
},
"hookEventType": "postUserChanged",
"version": 2,
"project": {
"id": "3119639999175643633",
"code": "온라인-광고"
},
"post": {
"id": "3177507624414006818",
"number": 27,
"subject": "웹 훅 테스트 6"
},
"source": {
"type": "member",
"member": {
"id": "3118892665733691672",
"name": "곽상용",
"userCode": "bravo.gwak",
"emailAddress": "bravo.gwak@demo.dooray.info"
}
}
}
슬랙 포맷
업무 등록
{
"text": "Task",
"attachments": [
{
"color": "#36a64f",
"title": "#온라인-광고/28 | 곽상용",
"text": "",
"footer": "Dooray!",
"ts": null,
"author_name": "bravo.gwak@demo.dooray.info, 웹 훅 테스트 7",
"title_link": "https://demo.dooray.com/project/posts/3177509817107387539"
}
],
"channel": "#channel",
"icon_url": "https://static-msg.nhnent.com/icon/dooray.png"
}
담당자 변경
{
"text": "Changed User",
"attachments": [
{
"color": "#36a64f",
"title": "#온라인-광고/28 | 웹 훅 테스트 7",
"text": "",
"footer": "Dooray!",
"ts": null,
"author_name": "곽상용",
"title_link": "https://demo.dooray.com/project/posts/3177509817107387539"
}
],
"channel": "#channel",
"icon_url": "https://static-msg.nhnent.com/icon/dooray.png"
}