Whitelisted fields for notifications? (and headers?)

In the docs for the notification system, it says:

"The notification message can include templated fields written using Jinja templates. The templates may reference a set of white-listed fields found in the associated job's serialization."

but doesn't say WHAT those white-listed fields are. What are they? I don't see anything relevant in the job template configuration ("found in the associated job's serialization"). I'd like to be able to include a couple of envvars in my Teams alert which would tell folks which ticket# the job is related to instead of just the awx job id. I even tried trawling the source code, but couldn't see where the jinja templates are rendered (and hence the context they are given).

Related: it seems you can use Jinja tags in the message but not the headers. I wanted to use the job id as a X-Correlation-Id header so that the logging can tie up with other logging. Has this changed in more recent versions? (we're on 21.7.0)

Thanks for any insight from anyone who has already travelled this road :slight_smile:

Howard

the fields you can include in your notification message are listed here https://ansible.readthedocs.io/projects/awx/en/latest/userguide/notification_parameters_supported.html

“The templates may reference a set of white-listed fields found in the associated job’s serialization”

do you have a link to the doc that mentions that?

AWX Team