Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
I have a connection between Jira Server and Jira Service Desk and I'm trying to create a configuration that will post a comment (with the ticket number) on Jira Service Desk after the ticket on Jira Server has been opened.
I'm syncing the statuses between the tickets and added the comment information inside this part but it's not working automatically, it only worked after I posted a comment on my ticket on Jira Server.
if (issue.type == nodeHelper.getIssueType("Incident")) {
def statusOpenMap = ["Open":"Acknowledged", "To Do":"Acknowledged", "In Progress":"Acknowledged"] // ["remote status name": "local status name"]
def remoteOpenStatusName = replica.status.name
if (replica.status.name == "Open" || replica.status.name == "To Do") {
String syncissue_open = "Development ticket '${replica.key}' has been opened"
issue.comments = commentHelper.addComment(issue.comments){ comment ->
comment.body = syncissue_open
comment.restrictSync = true
comment.internal = false
}
issue.setStatus(statusOpenMap[remoteOpenStatusName] ?: remoteOpenStatusName)
}