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.
Manage Confluence like never before! This new learning path teaches you how to manage content, users, and permissions while optimizing user experience. Built for admins at all levels who want to confidently lead and unlock more innovative collaboration.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.