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

FreeMarkerTemplateProvider: Allow Attribute Usage in sendExecuteActions Email Subject #11883

Open
ravinderpayal opened this issue May 7, 2022 · 0 comments
Labels
kind/enhancement Categorizes a PR related to an enhancement status/triage

Comments

@ravinderpayal
Copy link

Description

Right now Send Email Execution Email subject doesn't support Variable/Attribute Support as the implementation doesn't provide the subject attribute list. In fact it's calling the polymorphic sibling of send function which calls the main send function with an empty list in place subject-attribute argument.
Eventually, the process template method formats the subject line with an empty list of attributes.

Discussion

https://stackoverflow.com/questions/72058054/how-to-add-realm-name-in-custom-email-template-subject/72144000?noredirect=1#comment127470381_72144000

Motivation

The motivation comes from the fact that the current subject line is too generic and to add Realm related context to it one will need support for {{attribute}} in sendExecuteActions Email Subject

Details

We can simply provision Subject Attributes list with some documentation to express the attribute position.

One example is already here:

send("identityProviderLinkSubject", subjectAttrs, "identity-provider-link.ftl", attributes);

I will raise a PR shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Categorizes a PR related to an enhancement status/triage
Projects
None yet
Development

No branches or pull requests

1 participant