{
originalUrl : 'https://mtmrbackloghook.azurewebsites.net/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
method : 'POST' ,
query : {
code : '00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ=='
} ,
headers : {
connection : 'Keep-Alive' ,
'accept-encoding' : 'gzip, deflate' ,
host : 'mtmrbackloghook.azurewebsites.net' ,
'max-forwards' : '10' ,
'user-agent' : 'Backlog Webhook' ,
'x-liveupgrade' : '1' ,
'x-waws-unencoded-url' : '/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
'x-original-url' : '/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
'x-arr-log-id' : '082cba6d-a26b-4d1d-aed2-0038ebdbb04a' ,
'disguised-host' : 'mtmrbackloghook.azurewebsites.net' ,
'x-site-deployment-id' : 'mtmrbackloghook' ,
'was-default-hostname' : 'mtmrbackloghook.azurewebsites.net' ,
'x-forwarded-for' : '52.192.161.184:40976' ,
'x-arr-ssl' : '2048|128|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT SSL SHA2|CN=*.azurewebsites.net' ,
'content-length' : '614' ,
'content-type' : 'application/json; charset=UTF-8'
} ,
body : {
created : 2017 - 06 - 30 T22 : 00 : 22.000 Z ,
project : {
archived : false ,
projectKey : 'TEST' ,
name : 'TestProject' ,
chartEnabled : false ,
id : 100 ,
subtaskingEnabled : false
} ,
id : 10 ,
type : 2 ,
content : {
summary : 'test issue' ,
key_id : 100 ,
changes : [ Object ] ,
description : 'test description' ,
comment : [ Object ] ,
id : 100
} ,
notifications : [ ] ,
createdUser : {
nulabAccount : [ Object ] ,
name : 'yuta' ,
mailAddress : null ,
id : 67391 ,
roleType : 1 ,
userId : null
}
} ,
params : { } ,
rawBody : '{"created":"2017-06-30T22:00:22Z","project":{"archived":false,"projectKey":"TEST","name":"TestProject","chartEnabled":false,"id":100,"subtaskingEnabled":false},"id":10,"type":2,"content":{"summary":"test issue","key_id":100,"changes":[{"field":"priority","old_value":"","type":"standard","new_value":""}],"description":"test description","comment":{"id":200,"content":""},"id":100},"notifications":[],"createdUser":{"nulabAccount":{"nulabId":"fLU4SiYK9DphMAZb6LY8cMkNJfa3ZGoA2IORiBHYUmIi2LB58N","name":"y-matsumura","uniqueId":"y-matsumura"},"name":"yuta","mailAddress":null,"id":67391,"roleType":1,"userId":null}}'
}
{
"created" : " 2017-06-30T22:00:22Z" ,
"project" : {
"archived" : false ,
"projectKey" : " TEST" ,
"name" : " TestProject" ,
"chartEnabled" : false ,
"id" : 100 ,
"subtaskingEnabled" : false
},
"id" : 10 ,
"type" : 2 ,
"content" : {
"summary" : " test issue" ,
"key_id" : 100 ,
"changes" : [
{
"field" : " priority" ,
"old_value" : " " ,
"type" : " standard" ,
"new_value" : " "
}
],
"description" : " test description" ,
"comment" : {
"id" : 200 ,
"content" : " "
},
"id" : 100
},
"notifications" : [],
"createdUser" : {
"nulabAccount" : {
"nulabId" : " fLU4SiYK9DphMAZb6LY8cMkNJfa3ZGoA2IORiBHYUmIi2LB58N" ,
"name" : " y-matsumura" ,
"uniqueId" : " y-matsumura"
},
"name" : " yuta" ,
"mailAddress" : null ,
"id" : 67391 ,
"roleType" : 1 ,
"userId" : null
}
}
{
originalUrl : 'https://mtmrbackloghook.azurewebsites.net/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
method : 'POST' ,
query : {
code : '00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ=='
} ,
headers : {
connection : 'Keep-Alive' ,
'accept-encoding' : 'gzip, deflate' ,
host : 'mtmrbackloghook.azurewebsites.net' ,
'max-forwards' : '10' ,
'user-agent' : 'Backlog Webhook' ,
'x-liveupgrade' : '1' ,
'x-waws-unencoded-url' : '/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
'x-original-url' : '/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
'x-arr-log-id' : 'b8bd917f-9377-429b-b7d1-7419e875eced' ,
'disguised-host' : 'mtmrbackloghook.azurewebsites.net' ,
'x-site-deployment-id' : 'mtmrbackloghook' ,
'was-default-hostname' : 'mtmrbackloghook.azurewebsites.net' ,
'x-forwarded-for' : '52.192.161.184:41512' ,
'x-arr-ssl' : '2048|128|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT SSL SHA2|CN=*.azurewebsites.net' ,
'content-length' : '966' ,
'content-type' : 'application/json; charset=UTF-8'
} ,
body : {
created : 2017 - 06 - 30 T22 : 08 : 34.000 Z ,
project : {
archived : false ,
projectKey : 'TASK_1' ,
name : 'タスク' ,
id : 29773 ,
subtaskingEnabled : false
} ,
id : 16502167 ,
type : 2 ,
content : {
summary : 'Slack notification sample' ,
key_id : 4 ,
changes : [ Object ] ,
description : 'hoge' ,
comment : [ Object ] ,
id : 1177104
} ,
notifications : [
[ Object ]
] ,
createdUser : {
nulabAccount : [ Object ] ,
name : 'yuta' ,
mailAddress : null ,
id : 67391 ,
roleType : 1 ,
userId : null
}
} ,
params : { } ,
rawBody : '{"created":"2017-06-30T22:08:34Z","project":{"archived":false,"projectKey":"TASK_1","name":"タスク","id":29773,"subtaskingEnabled":false},"id":16502167,"type":2,"content":{"summary":"Slack notification sample","key_id":4,"changes":[{"field":"status","old_value":"2","type":"standard","new_value":"1"},{"field":"assigner","old_value":"tsubaki","type":"standard","new_value":"yuta"},{"field":"limitDate","old_value":"","type":"standard","new_value":"2017-07-05"}],"description":"hoge","comment":{"id":11558621,"content":"hogehoge\\nfugafuga"},"id":1177104},"notifications":[{"reason":2,"resourceAlreadyRead":false,"alreadyRead":false,"id":11641044,"user":{"nulabAccount":null,"name":"tsubaki","mailAddress":null,"id":68651,"roleType":2,"userId":null}}],"createdUser":{"nulabAccount":{"nulabId":"fLU4SiYK9DphMAZb6LY8cMkNJfa3ZGoA2IORiBHYUmIi2LB58N","name":"y-matsumura","uniqueId":"y-matsumura"},"name":"yuta","mailAddress":null,"id":67391,"roleType":1,"userId":null}}'
} : null
}
}
' }
{
"created" : " 2017-06-30T22:08:34Z" ,
"project" : {
"archived" : false ,
"projectKey" : " TASK_1" ,
"name" : " タスク" ,
"id" : 29773 ,
"subtaskingEnabled" : false
},
"id" : 16502167 ,
"type" : 2 ,
"content" : {
"summary" : " Slack notification sample" ,
"key_id" : 4 ,
"changes" : [
{
"field" : " status" ,
"old_value" : " 2" ,
"type" : " standard" ,
"new_value" : " 1"
},
{
"field" : " assigner" ,
"old_value" : " tsubaki" ,
"type" : " standard" ,
"new_value" : " yuta"
},
{
"field" : " limitDate" ,
"old_value" : " " ,
"type" : " standard" ,
"new_value" : " 2017-07-05"
}
],
"description" : " hoge" ,
"comment" : {
"id" : 11558621 ,
"content" : " hogehoge\\ nfugafuga"
},
"id" : 1177104
},
"notifications" : [
{
"reason" : 2 ,
"resourceAlreadyRead" : false ,
"alreadyRead" : false ,
"id" : 11641044 ,
"user" : {
"nulabAccount" : null ,
"name" : " tsubaki" ,
"mailAddress" : null ,
"id" : 68651 ,
"roleType" : 2 ,
"userId" : null
}
}
],
"createdUser" : {
"nulabAccount" : {
"nulabId" : " fLU4SiYK9DphMAZb6LY8cMkNJfa3ZGoA2IORiBHYUmIi2LB58N" ,
"name" : " y-matsumura" ,
"uniqueId" : " y-matsumura"
},
"name" : " yuta" ,
"mailAddress" : null ,
"id" : 67391 ,
"roleType" : 1 ,
"userId" : null
}
}
Notification added test data
{
originalUrl : 'https://mtmrbackloghook.azurewebsites.net/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
method : 'POST' ,
query : {
code : '00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ=='
} ,
headers : {
connection : 'Keep-Alive' ,
'accept-encoding' : 'gzip, deflate' ,
host : 'mtmrbackloghook.azurewebsites.net' ,
'max-forwards' : '10' ,
'user-agent' : 'Backlog Webhook' ,
'x-liveupgrade' : '1' ,
'x-waws-unencoded-url' : '/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
'x-original-url' : '/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==' ,
'x-arr-log-id' : 'cd47aba1-55ff-4233-8399-d84c353ecbc1' ,
'disguised-host' : 'mtmrbackloghook.azurewebsites.net' ,
'x-site-deployment-id' : 'mtmrbackloghook' ,
'was-default-hostname' : 'mtmrbackloghook.azurewebsites.net' ,
'x-forwarded-for' : '52.192.161.184:41778' ,
'x-arr-ssl' : '2048|128|C=US, S=Washington, L=Redmond, O=Microsoft Corporation, OU=Microsoft IT, CN=Microsoft IT SSL SHA2|CN=*.azurewebsites.net' ,
'content-length' : '546' ,
'content-type' : 'application/json; charset=UTF-8'
} ,
body : {
created : 2017 - 06 - 30 T22 : 15 : 16.000 Z ,
project : {
archived : false ,
projectKey : 'TEST' ,
name : 'TestProject' ,
chartEnabled : false ,
id : 100 ,
subtaskingEnabled : false
} ,
id : 10 ,
type : 17 ,
content : {
summary : 'test issue' ,
key_id : 100 ,
description : 'test description' ,
comment : [ Object ] ,
id : 100
} ,
notifications : [ ] ,
createdUser : {
nulabAccount : [ Object ] ,
name : 'yuta' ,
mailAddress : null ,
id : 67391 ,
roleType : 1 ,
userId : null
}
} ,
params : { } ,
rawBody : '{"created":"2017-06-30T22:15:16Z","project":{"archived":false,"projectKey":"TEST","name":"TestProject","chartEnabled":false,"id":100,"subtaskingEnabled":false},"id":10,"type":17,"content":{"summary":"test issue","key_id":100,"description":"test description","comment":{"id":200,"content":"test comment"},"id":100},"notifications":[],"createdUser":{"nulabAccount":{"nulabId":"fLU4SiYK9DphMAZb6LY8cMkNJfa3ZGoA2IORiBHYUmIi2LB58N","name":"y-matsumura","uniqueId":"y-matsumura"},"name":"yuta","mailAddress":null,"id":67391,"roleType":1,"userId":null}}'
}
{
"created" : " 2017-06-30T22:15:16Z" ,
"project" : {
"archived" : false ,
"projectKey" : " TEST" ,
"name" : " TestProject" ,
"chartEnabled" : false ,
"id" : 100 ,
"subtaskingEnabled" : false
},
"id" : 10 ,
"type" : 17 ,
"content" : {
"summary" : " test issue" ,
"key_id" : 100 ,
"description" : " test description" ,
"comment" : {
"id" : 200 ,
"content" : " test comment"
},
"id" : 100
},
"notifications" : [],
"createdUser" : {
"nulabAccount" : {
"nulabId" : " fLU4SiYK9DphMAZb6LY8cMkNJfa3ZGoA2IORiBHYUmIi2LB58N" ,
"name" : " y-matsumura" ,
"uniqueId" : " y-matsumura"
},
"name" : " yuta" ,
"mailAddress" : null ,
"id" : 67391 ,
"roleType" : 1 ,
"userId" : null
}
}