Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request actions through Email #367

Open
VassilIordanov opened this issue Jan 4, 2018 · 2 comments
Open

Request actions through Email #367

VassilIordanov opened this issue Jan 4, 2018 · 2 comments

Comments

@VassilIordanov
Copy link
Contributor

VassilIordanov commented Jan 4, 2018

Until we have native ANET taskable actions, add the ability for a user to request actions from other users through emails.

For example:
A user is unable to submit a report due to the primary principal not being assigned. The warning could be something along the lines of:

Primary principal is not assigned to a position. Please ask your superusers to assign pricipal XYZ to position

Submission message, including email template, to be stored in the dictionary, in the form of:

report:
   submission:
    primaryPrincipalNotAssignedMessage: 'Please <a href="mailto:super.user.1@anet.com; super.user.2@anet.com?bcc=anet.log@anet.com&amp;subject=ANET%20Action%20requst%3A%20Assign%20pricipal%20to%20position&amp;body=Dear%20ANET%20super%20user(s)%2C%0AI%20would%20like%20to%20request%20that%20principal%20%3Ca%20href%3D%22anet%2Fperson%23{$report.primaryPrincipal.id}%22%3E{$report.primaryPrincipal.name}%3C%2Fa%3E%20is%20assigned%20to%20an%20organization.%0AKind%20regards%2C%0A%3Ca%20href%3D%22anet%2Fperson%23{$user.id}%22%3E{$user.name}%3C%2Fa%3E%0A">ask your superusers to assign pricipal {$report.primaryPrincipal.name} to position</a>' 
    primaryAdvisorNotAssignedMessage: '.......................'

A universal context object to be injected to resolve templates, possibly in the vein of

{
  user: {id: 15, name: "SMITH, Joe"},
  superusers: [{id: 15, name: "SMITH, Joe", email:"j.s@anet.com"}],
  report: {id: 123, primaryAdvisor: {id: 15, name: "SMITH, Joe"}, primaryPrincipal {id: 16, name: "SMITH, Jack"}}
}

Relatred to:

@VassilIordanov
Copy link
Contributor Author

will be addressed by #1115 and #1130

@midmarch
Copy link
Contributor

We @VassilIordanov @gjvoosten @HK-Simsoft @midmarch believe this is not the way to solve the requirement, but we keep the issue open because requirement self is valid. See also #199.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants