I'm using scriptrunner to create a sub-task as a postfuction in one of my transitions.
According to https://answers.atlassian.com/questions/123997 I should be able, in the sub-task create transition, set something to tell it not to inherit the parent's field values. I am unable to find where to unset "Set Field Value from Parent". All of the parent's fields that also exist in the sub-task are getting populated with the parents values. I can live with this, but would REALLY like to clear all of the watchers out.
Here's what I have so far that's working like a charm. The question is - what do I add to it to clear the watchers from the sub-task? Thanks!
def cf = customFieldManager.getCustomFieldObjects(sourceIssue).find {it.name == 'Product Name'}
issue.summary = sourceIssue.getCustomFieldValue(cf)
issue.summary = issue.summary + " - License"
issue.description = "";
checkLink = {link -> false};