Hello There,
I have a use case where I need to rename a project upon which a mail will be triggered. I was able to achieve this with scriptrunner "Send custom mail" listener with "ProjectUpdatedDetailedChangesEvent" event.
But I'm not able to capture old and new project names. Could you please help me with this?
Thanks,
Poojaa
After looking through the documentation and testing it myself I am afraid to say that I don't think it is possible. "ProjectUpdatedDetailedChangesEvent" returns nothing useful, and "ProjectUpdatedEvent", which actually have information about oldProject and newProject, isn't triggered when you change the name or key for some reason :(
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 comparision of the project name before and after
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.