Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Project rename event

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

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

it does not... no params at all here

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

228 views 14 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you