Jira Project rename event

Poojaa Sudhakaran June 29, 2020

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

2 answers

0 votes
Michael Aglas April 7, 2021

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

0 votes
Subrat Mishra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2020

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

Michael Aglas April 7, 2021

it does not... no params at all here

Suggest an answer

Log in or Sign up to answer