This is the condition you need
changeItems.any{ it.field == 'Sprint' }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The right event should be Issue Updated. Could you try to change the event from Issue Moved to Issue Updated?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basically you are updating an issue field that reflects the current sprint. If you move your issue that field should not be affected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since we have multiple sprints this is notifying too often. Is there a way so a notification is sent only if the issue is a Story and only if the issue is moved in/out of the active sprint? This condition does not appear to work: project = PULSE AND issuetype = Story AND status = Ready AND resolution = Unresolved and Sprint not in futureSprints()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amy. Did you ever figure a way to accomplish a notification being sent if the issue is moved in/out of the active sprint? If so, would you mind sharing your script? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.