We want a notification to fire when an issue is added to or removed from the sprint. This script did not work.
2015-02-05_8-51-43.png
This is the condition you need
changeItems.any{ it.field == 'Sprint' }
The goal is to send a notification when an item is moved to or removed from the Active sprint. We have multiple sprints enabled but there is only 1 sprint active at a time.
I both of these but they are not firing a notification: 2015-02-09_11-43-52.png
and
2015-02-09_11-45-17use.png
This filter pulls up the data we need, and then if there is a change to this filter we need a notification: project = PULSE AND issuetype = Story and status = ready AND resolution = Unresolved and Sprint not in futureSprints()
The right event should be Issue Updated. Could you try to change the event from Issue Moved to Issue Updated?
Your condition is a JQL query.Scriptrunner handles groovy scripts so the native way should be something like:
def sprintChanged = changeItems.any{ it.field == 'Sprint' } sprintChanged && issue.projectObject?.key == "PULSE" && issue.issueTypeObject?.name == 'Story' && issue.statusObject?.name == 'Ready' && issue.resolutionObject?.name == 'Unresolved'
It looks like you're new here. Sign in or register to get started.