You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.