Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Timeline Comments as Email

Avatar

Avatar
Validate 1
Level 2
nitinjl
Level 2

Likes

6 likes

Total Posts

62 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
nitinjl
Level 2

Likes

6 likes

Total Posts

62 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
nitinjl
Level 2

10-06-2019

How to get Asset Timeline comments as part of email notification triggered to assignee.

Getting asset path (in email message body), but not the given comment text.

any thoughts please.

Version - AEM 6.4.4

timeline-comments.JPG

Replies

Avatar

Avatar
Give Back 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct Reply

5 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct Reply

5 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
mr_chawla
Level 2

18-06-2019

Hi,

In case of AEM 6.4 the default path for template used is /libs/settings/workflow/notification/email/tasks/created/en.txt [1].

You can make necessary modifications in the templates being used for sending emails, check below link for details around it if this supports your use case.

https://helpx.adobe.com/in/experience-manager/6-4/sites/administering/using/notification.html

Regards,

Sumeet Chawla.

[1]:

subject=${item.name}: Task Created1

header=-------------------------------------------------------------------------------------\n \

Task: ${item.name}\n \

Description: ${item.description}\n \

User: ${participant.name} (${participant.id})\n \

-------------------------------------------------------------------------------------\n\n

message=Content: ${host.prefix}${payload.path.open}\n

footer=\n \

-------------------------------------------------------------------------------------\n \

View the overview in your ${host.prefix}/aem/inbox\n \

-------------------------------------------------------------------------------------\n \

This is an automatically generated message. Please do not reply.

Avatar

Avatar
Validate 1
Level 2
nitinjl
Level 2

Likes

6 likes

Total Posts

62 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 2
nitinjl
Level 2

Likes

6 likes

Total Posts

62 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
nitinjl
Level 2

19-06-2019

Thanks Sumeet, already looked into it but seems timeline comments persists into <Asset path>/jcr:content/comments as nodes and not pushed to the task node at /var/taskmanagement/tasks.

Avatar

Avatar
Establish
Level 2
vijkumar
Level 2

Likes

15 likes

Total Posts

21 posts

Correct Reply

4 solutions
Top badges earned
Establish
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Establish
Level 2
vijkumar
Level 2

Likes

15 likes

Total Posts

21 posts

Correct Reply

4 solutions
Top badges earned
Establish
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
vijkumar
Level 2

19-06-2019

Hi Nitin,

Below are few pointers regarding the functionality:

  • com.day.cq.dam.core.impl.event.CommentNotificationSender.java creates the task at [2]
  • com.day.cq.workflow.impl.email.TaskEMailNotificationService.java reads the task/event and triggers the mail using the template [1]
  • The legacy root for the email templates was /etc/workflow/
  • The email templates are loaded at the bundle load/start, so any changes in the template will only be picked and used post restart of bundle [3]
  • As the comments in this case are saved under <Asset path>/jcr:content/comments as nodes and not pushed to the task node at [2] for each comment. I do not see an option to add them to the mail template

[1] /libs/settings/workflow/notification/email/tasks/created/en.txt

[2] /var/taskmanagement/tasks

[3] Day Communique 5 Workflow Implementation(com.day.cq.workflow.cq-workflow-impl)