Forums

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

Notifications for attachment deleted and comment deleted.

Ash
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 13, 2019

Hi Team,

Is there a way we can get a notification (not like issue updated notification) when attachment deleted or comment deleted.

 

TIA!!

1 answer

0 votes
Tinker Fadoua
Community Champion
February 13, 2019

@Ash

If you are a JIRA admin, you can add a generic event. I will suggest you to try it in a test environment first.

Best,

Fadoua

Ash
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 13, 2019

@Tinker Fadoua thank you. 

Can we trigger event without a workflow?

We are looking for a notification when every time attachment is deleted.

 

Thanks,

Ash. 

Tinker Fadoua
Community Champion
February 13, 2019

@Ash

Yes without making any change at the workflow level.

Go to your Notification Scheme, at the very end you will see "Generic Event" you add the event you are looking to get notified about.

Let me know if you have any additional questions

Screen Shot 2019-02-13 at 11.25.58 AM.png

Ash
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 13, 2019

@Tinker Fadoua

I see a template for commented deleted.

Do we need to create a template for attachment deleted?attachment_deleted.jpg

Tinker Fadoua
Community Champion
February 13, 2019

Yes @Ash add a generic event for attachments deletion. Anytime in the future you need an event that is not available already you add it yourself. Please make sure to don't overwhelm JIRA 😉

Best,

Fadoua

Tinker Fadoua
Community Champion
February 14, 2019

@AshHow is it going?

Ash
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, 2019

@Tinker Fadoua Thanks for the followup  :-)

I'm planning to use this code in the email template.

Will update you once after adding it.

#disable_html_escaping()


#defaultMailHeader("email.event.activity.attachment.deleted", $changelogauthor)

#set ($issueTitleNoTopMargin = true)
#set ($issueTitleBody="#parse('templates/email/html/includes/patterns/issue-title.vm')")
#rowWrapperNormal($issueTitleBody)

#parse("templates/email/html/includes/footer.vm")

Tinker Fadoua
Community Champion
February 14, 2019

@Ashthe generic event didn't help? Also before making a change to the email template in Production, try it in a Test server first.

Best,

Fadoua

Ash
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, 2019

@Tinker Fadoua Correct me if i'm wrong. 

Generic events can only be fired from transitions as mentioned here  https://confluence.atlassian.com/adminjiraserver073/creating-a-notification-scheme-861253478.html?_ga=2.215380511.965870903.1550179680-710762968.1550179680

 

I don't think we can use generic event fro attachment deleted notification.

Tinker Fadoua
Community Champion
February 17, 2019

@Ash  My apology I am out of the office. Yes they go by transition. Definitely for attachments deletion you won't be able to use Generic Event.

Let me ask you: why don't you remove or grant the attachments and comments deletion from Permission Scheme? Grant them only to people who won't abuse them.

I really apologize I was thinking Permissions when I was the whole time talking about notifications.

Best,

Fadoua

Suggest an answer

Log in or Sign up to answer