microsoft / vsts-zendesk-app

Visual Studio Team Services App for Zendesk
https://marketplace.visualstudio.com/items?itemName=ms-vsts.services-zendesk
MIT License
37 stars 31 forks source link

Cannot post comment to Zendesk ticket from Work Item comment #60

Open puzzloholic opened 6 years ago

puzzloholic commented 6 years ago

Integration from Zendesk to VSTS is already working, Zendesk user can create new Work Item, and notify comes in the form of Work Item Discussion. But from VSTS to Zendesk there seems to be a bug, when VSTS user comment on the work item, there is no private comment appear on connected Zendesk ticket.

Service hooks history shows that call is invoked but on the request tab, there is notification No Zendesk tickets found

This is the event :

{
    "id": "27950f39-0392-42c4-9b06-ef3bd4bf7854",
    "eventType": "workitem.commented",
    "publisherId": "tfs",
    "message": {
        "text": "Bug #1240 (VSTS Zendesk Integration Test) commented on by REDACTED\r\n(https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&id=1240)",
        "html": "<a href=\"https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&amp;id=1240\">Bug #1240</a> (VSTS Zendesk Integration Test) commented on by REDACTED",
        "markdown": "[Bug #1240](https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&id=1240) (VSTS Zendesk Integration Test) commented on by REDACTED"
    },
    "detailedMessage": {
        "text": "Bug #1240 (VSTS Zendesk Integration Test) commented on by REDACTED\r\n(https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&id=1240)\r\ntest reply",
        "html": "<a href=\"https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&amp;id=1240\">Bug #1240</a> (VSTS Zendesk Integration Test) commented on by REDACTED<br/>test reply",
        "markdown": "[Bug #1240](https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&id=1240) (VSTS Zendesk Integration Test) commented on by REDACTED\r\ntest reply"
    },
    "resource": {
        "id": 1240,
        "rev": 3,
        "fields": {
            "System.AreaPath": "REDACTED",
            "System.TeamProject": "REDACTED",
            "System.IterationPath": "REDACTED",
            "System.WorkItemType": "Bug",
            "System.State": "New",
            "System.Reason": "New defect reported",
            "System.CreatedDate": "2018-05-26T07:52:23.243Z",
            "System.CreatedBy": "REDACTED",
            "System.ChangedDate": "2018-05-26T07:56:13.27Z",
            "System.ChangedBy": "REDACTED",
            "System.Title": "VSTS Zendesk Integration Test",
            "System.BoardColumn": "New",
            "System.BoardColumnDone": false,
            "Microsoft.VSTS.Common.StateChangeDate": "2018-05-26T07:52:23.243Z",
            "Microsoft.VSTS.Common.Priority": 2,
            "Microsoft.VSTS.Common.Severity": "4 - Low",
            "Microsoft.VSTS.Common.ValueArea": "Business",
            "WEF_49CBB8E084C84536B0344488A743FB35_Kanban.Column": "New",
            "WEF_49CBB8E084C84536B0344488A743FB35_Kanban.Column.Done": false,
            "System.Description": "Just an integration test",
            "System.History": "test reply",
            "Microsoft.VSTS.TCM.ReproSteps": "Just an integration test",
            "System.Tags": "zendesk"
        },
        "relations": [
            {
                "rel": "Hyperlink",
                "url": "https://REDACTED.zendesk.com/agent/#/tickets/242",
                "attributes": {
                    "authorizedDate": "2018-05-26T07:52:23.243Z",
                    "id": 2554026,
                    "resourceCreatedDate": "2018-05-26T07:52:23.243Z",
                    "resourceModifiedDate": "2018-05-26T07:52:23.243Z",
                    "revisedDate": "9999-01-01T00:00:00Z",
                    "name": "ZendeskLinkTo_Ticket_242"
                }
            }
        ],
        "_links": {
            "self": {
                "href": "https://REDACTED/_apis/wit/workItems/1240"
            },
            "workItemUpdates": {
                "href": "https://REDACTED/_apis/wit/workItems/1240/updates"
            },
            "workItemRevisions": {
                "href": "https://REDACTED/_apis/wit/workItems/1240/revisions"
            },
            "workItemComments": {
                "href": "https://REDACTED/_apis/wit/workItems/1240/comments"
            },
            "html": {
                "href": "https://REDACTED/web/wi.aspx?pcguid=fa01298d-ff60-4a85-9e65-e2e8438b113b&id=1240"
            },
            "workItemType": {
                "href": "https://REDACTED/_apis/wit/workItemTypes/Bug"
            },
            "fields": {
                "href": "https://REDACTED/_apis/wit/fields"
            }
        },
        "url": "https://REDACTED/_apis/wit/workItems/1240"
    },
    "resourceVersion": "1.0",
    "resourceContainers": {
        "collection": {
            "id": "fa01298d-ff60-4a85-9e65-e2e8438b113b",
            "baseUrl": "https://REDACTED/"
        },
        "account": {
            "id": "988945b8-bd8e-4ad1-ae7c-215d0c7eede8",
            "baseUrl": "https://REDACTED/"
        },
        "project": {
            "id": "c6c768de-1708-4341-ab2d-2b0671e98360",
            "baseUrl": "https://REDACTED/"
        }
    },
    "createdDate": "2018-05-26T07:56:15.164Z"
}
pmosupport commented 6 years ago

I have the same issue..comments in VSTS are not coming into ZD as private comments.

the service hooks history is also empty..so not sure if thats correct or not

Also with the integration need some clarification:

  1. do the comments from ZD go into VSTS only when i click the "notify" button
aseigle commented 5 years ago

Would be nice if there was a response to this in the last year. Does anybody monitor this git? We just installed the app and connected to our Dev Ops and have not had a very pleasant experience.

We'd also like to see comments from Dev Ops flow to Zendesk as a private comment working right out of the box.