cancel
Showing results for 
Search instead for 
Did you mean: 

Data List Task Title in email notification

mthomas
Champ in-the-making
Champ in-the-making
I am trying to figure out how to add the title and description of a task to my email notification for a task addition or update.  This is from a Task List created in the data lists section of a site within Share.

Currently I have set up email notifications by browsing to the appropriate folder within the datalists folder with the Repository Browser in Share.  I have set up my email rules and can receive emails for add, update, change and delete.  I have been doing this by writing custom ftl templates in the Company Home>Data Dictionary>Email Templates>Notify Email Templates.  The following works for this:

A task titled {TITLE HERE}  has been added to your task list.  It was added by ${person.properties.firstName}<#if person.properties.lastName?exists> ${person.properties.lastName}</#if>.

I would like to know the code to place in TITLE HERE to successfully pull the title from the task list for the email.  Additionally, adding the description or comments of a task would be nice to know.

Any help would be much appreciated.
Thank YOU!
11 REPLIES 11

pbb
Champ in-the-making
Champ in-the-making
Hi all,

I'm having the same problem. How can we get the email of an assigned people ? Did you find something ? …or a clue?

Cheers,

efvrvo
Champ on-the-rise
Champ on-the-rise
Hi

pavaniakella  solved this one for me. I did the following

var person=document.assocs["dl:issueAssignedTo"][0];
var username=person.properties["{http://www.alfresco.org/model/content/1.0}userName"];
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:adhoc";
workflow.parameters["bpm:workflowDescription"] =  document.properties["dl:issueID"] + " - "+ document.properties.title;
workflow.parameters["bpm:assignee"] = people.getPerson(username);
workflow.parameters["bpm:workflowDueDate"] = document.properties["dl:issueDueDate"];
workflow.parameters["wf:notifyMe"] = true;

workflow.execute(document);