1
0
-1
3 answers
- 210
Hello Sarita,
Place the following code in your Azure DevOps Outgoing Sync
workItem.comments.collect{ comment -> if(comment.body.contains("@send2Zendesk")){ replica.comments += comment } } replica.comments = nodeHelper.stripHtmlFromComments(replica.comments)
This code snippet will only add to the replica, the comments that contain the following text: "send2Zendesk".
Regards,
Javier Pozuelo
Add your comment... - 10-1
I also tried the reverse from zendesk to ado only for internal comments with below script and it worked
def intc = issue.comments.findAll{it.internal}
def matchingComments = intc.findAll
{
comment ->
comment.body =~ /@send2ado/
}
replica.comments += matchingCommentsAdd your comment... - 10-1
Yes it worked..Thanks
Add your comment...
How do i send comments to Zendesk only if certain text is found in ADO comment eg: @send2Zendesk if found in comments section only then will it sync to zendesk