ScriptRunner: Listeners -> ProjectComponentUpdatedEvent - Email function

Jurica Petricevic
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.
October 18, 2021

Hi Community,

ScriptRunner: Listeners -> ProjectComponentUpdatedEvent sends emails on Component Name Change but i really don't know how to configure email

I need an email telling me what project is it, what component it was and what it’s called now.

 

so far I have managed the following:

Old Project Component: $event.oldProjectComponent
Updated Project Component$event.projectComponent

 

giving me this:

ProjectComponentImpl

{ name='Testanwendung', description='', lead='JIRAUSER17420', assigneeType='1', projectId='16052', id='17119', archived='false' }

ProjectComponentImpl

{ name='Testanwendung2', description='', lead='JIRAUSER17420', assigneeType='1', projectId='16052', id='17119', archived='false' }

 

 

and i am needing this:

Old Component Name:

Projekt:
Lead: 
Description: 
Archived:

 

Neu Component Name:

Projekt:
Lead: 
Description: 
Archived:

 

And if possible link to the project in the same email.

did I address in the right place and in the right way?

Can anyone help me here?

 

Best regards

Jurica

1 answer

0 votes
Salim Hammar February 14, 2022

Hi @Jurica Petricevic 

You are find the solution for your issue ?

Because i have the issue look at this : 

script_okay.png

 

Thanks in advance

Jurica Petricevic
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.
February 14, 2022

@Salim Hammar I did not solve this problem. If you could copy this in code, so i can tried it in my system?

 

best regards

Suggest an answer

Log in or Sign up to answer