Hello All,
I have a use case where a mail should be triggered when a project is renamed. I was able to achieve this with Scriptrunner "Send a custom mail" listener with "ProjectUpdatedDetailedChangesEvent" event.
But I'm not able to fetch old and new project names. Could you please help me with this?
Below is the code snippet used under "Conditions"
boolean flag = event.getIsProjectNameChanged()
if(flag) {
true
} else {
false
}
Thanks,
Poojaa
you can use 'ProjectUpdatedEvent' and get the project and the old project via: event.getOldProject() and event.getProject()
this can be used to make a comparison of the project name before and after and therefore you can evaluate yourself if project name was updated
You can use "event.getParams()" . Hopefully it will get you those details .
getParams()
A map of parameters which can be used to pass data to a Listener
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.
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.