Re-open issue when comment is added

In a Jira to Salesforce synchronization, while the status is not currently synchronized we want to add a function that would re-open the jira incident if a comment is added to the Item synchronized to it from the salesforce side. No other status synchronization is needed.

Hi @Juan_Carvajal,

I have tested the script below in my Jira Cloud instance. If there are new comments in the replica and the issue status = “Done” the issue will be “re-opened” and moved to “To Do”

Could you add this to your Jira incoming sync script and let me know if it works for you? You just need to change the statuses to match your scenario.

if(replica.addedComments && issue.status.name == "Done"){
	issue.setStatus("To Do")
}