Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Rename component - EMail

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 12, 2021

Hallo Community,

 

is it possible to send an email for each component name change? 

not on the ticket/issue than in the project settings.

may be limited to issuetyp or category.

Do anyone have any idea?

 

best regards

Jurica Petricevic

1 answer

0 votes
Nic Brough -Adaptavist-
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 12, 2021

No, Jira doesn't track component renames beyond a line in the audit log, so there's nothing that would be able to trigger an email (no "event" is fired)

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 12, 2021

@Nic Brough -Adaptavist- I found it in a ScriptRunner: Listeners -> ProjectComponentUpdatedEvent that sends emails on Component Name Change but i really don't know how to configure email

 

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

 

Do we have some ScriptRunner experts here?

Photo1.JPG

 

Best regards 

Jurica Petricevic

Nic Brough -Adaptavist-
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 12, 2021

Oh, excellent, I didn't know we'd implemented the events in there (there's 500 of us now, I can't keep up with everything every team is doing!)

It looks to me like you've got everything set up right in there for sending email (that's common to all events, so not new!).  Mail templates look fine to me, and leaving the condition/configuration blank should mean "send mail on every component update"

You may want to add a condition to drop the emails on component add/remove, but if you're interested in renames, I suspect you're also interested in create/delete, so I'm guessing you wouldn't need it.

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 12, 2021

I don't know how to do it here, can you help me?

What exactly to write in the condition and what in the template coz this here brings only errors. Isnt working.

Nic Brough -Adaptavist-
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 12, 2021

Ok, what are the errors?  We should be able to leave the conditions blank for "tell me about everything"

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 12, 2021

I will add a few pictures that better explain the problems.

Photo 6.JPGPhoto2.JPGPhoto5.JPG

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 12, 2021

I got some response from ScriptRunner Support:

//Get Component Nameevent.getProjectComponent().getName()

//Get Old Component Nameevent.getOldProjectComponent().getName()

this still doesn’t solve my question of what it is to write into Condition and what into Email template. 

Suggest an answer

Log in or Sign up to answer