Hello there,
Unfortunately it is not possible for me to select a customfield as recipient of an email.
I tried the following values as the recipient of the email without success: {{customfield_11520}}, {{customfield_11520.value}}, {{issue.customfield_11520}}, {{issue.customfield_11520.value}}
Before that I check with an extended comparison condition (^null$|^$) if the field {{issue.customfield_11520}} ("Testauftraggeber") is not empty.
Error message:
Send email
The email could not be sent because the "To" field is empty. If you referenced a field, it may be empty.
Screenshot: Automation
Screenshot: Customfield
Many Greetings,
Christopher
Try simply with {issue.CUSTOMFIELDNAME}}. E.g. I have a paragraph field called "Paragraph". To get the value of this text field I used {{issue.Paragraph}} and the send email worked just fine. What type of field is your field?
Hi Alex,
Unfortunately, that didn't work out.
I still get the same error message that the field is empty.
I have already removed the comparison condition.
In my first post you can see a screenshot of the field.
Please see also screenshot:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The custom field contains a user from another project.
That means there is a manual trigger in project A and the triggering user creates a new task in project B. The new task contains a custom field to store the triggering user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The field you are using is a user picker field. Meaning that behind it Jira uses the account id of the user and not any other information. To acquire this type:
{{issue.Testauftraggeber.emailAddress}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, that didn't work out.
I still get the same error message that the field is empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When copying from project A to project B, can't I pass the email address of the user who is firing the trigger into a new text field?
Unfortunately, the text field remained empty in the following attempt:
{
"fields": {
"customfield_11520": [{"id": "{{initiator.accountID}}" }],
"customfield_11523": [{"id": "{{initiator.emailAdress}}" }]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Christopher Dick can you explain/break down your rule please? It doesn't make any sense not to work the above smart value I gave you. I mean I tested it and I have successfully received the email. The only thing I can think of, is that this user field is being copied after the email has been sent. Soo... try adding a re-fetch component before sending the email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found a spelling error, but the problem still persists:
{
"fields": {
"customfield_11520": [{"id": "{{initiator.accountID}}" }],
"customfield_11523": [{"id": "{{initiator.emailAddress}}" }]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"customfield_11523": [{"id": "{{initiator.emailAddress}}" }]
You are trying to add an email address to an id. This can't happen :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am unfortunately still new to the topic.
How can I pass the email into a text field?
By the way, the email cannot be sent even after refreshing the process again. Furthermore, an empty field is mentioned as an error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both rules at a glance.
On the left, Project B for sending e-mails.
Right Project A for creating a new task in Project B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.