Hello,
I have an scripts that goes through 100 of issues to update a field. I do not want to spam everyone with emails but I cannot find in the documentation if when I use HAPI I can disable emails.
If I have a script similar to this
Solved! Go to Solution.
Thanks @Reece Lander _ScriptRunner - The Adaptavist Group_
I tried looking for anything related to this in the documentation including the JavaDocs. Doesn't seem to be there yet.
Can you help provide some clues as to where in the JavaDocs the various methods available in those update methods (listed as Closure<?>specification ) can be found?
Also, I was not able to identify if there is a similar method for Assets.
E.g.
import com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption
def object = Assets.getByKey('KEY-123')
object.update {
setEventDispatchOption(EventDispatchOption.DO_NOT_DISPATCH)
setAttribute('AttributeName', 'new value')
}
All or most ObjectFacade methods have an signature that includes an EventDispatchOption.
It would be nice to be able leverage that via HAPI.