Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation question

Carina Gungner October 3, 2024

Hi,

I have created a new rule in Automation. I want to receive an email with a list of issues. There is no problem creating the list, I can see that the issues I find has an assignee. I choose the assignee from the dropdown list in the To box in Send email action and saves it. Everything looks fine until I try to run the rule. Then I get the error "

 

As there is no issue present, cannot get the value of the field:
assignee
Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty."
From what I can see it is not empty.
In the email I want the assignee to be shown so I have added it in the Content like this

{{#lookupIssues}} - key: {{key}}, Summery: {{summary}}, Assignee; {{assignee}} {{/lookupIssues}}

I change receiver in the To box to another, and run the rule to see if I could get the assignee displayed in the mail and I got this

Assignee; 712020:b6e099e3-8fef-42bc-835c-......

What am I doing wrong?

 

4 answers

2 votes
Cristian0791
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2024

Hi Carina,

Did you think about creating a filter and then make a subscription on the filter?

 

 

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2024

Hi @Carina Gungner -- Welcome to the Atlassian Community!

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

What type of project are you using: company-managed or team-managed?

Kind regards,
Bill

0 votes
Bandarupalli Sai
Contributor
October 3, 2024

@Carina Gungner - Can you use the below smart value and see if it helps

  • Send Email

    • In the To field, use {{assignee.emailAddress}}.
    • In the email content, use:
      Issue Key: {{key}} Summary: {{summary}} Assignee: {{assignee.displayName}}

 

Carina Gungner October 3, 2024

It works in the email content to use the {{assignee.displayName}}, but using the {{assignee.emailAddress}} in the To field doesn't work. The error says "Could not send email, the 'To' address field is empty. If you have referenced a field it may be empty." 

 

Carina Gungner October 3, 2024

SendEmail.png

0 votes
Dick
Community Champion
October 3, 2024

Hi @Carina Gungner , welcome to the Atlassian Community

From the error message one can deduce that there is no issue to get the assignee. Could you post your automation script so we can determine the cause behind this?

Thank you in advance for helping us help you,

Dick

By voting for helpful posts and marking answers to your question, you're helping people with similar questions find a solution more quickly. Sharing is caring applies to knowledge as well :)

Carina Gungner October 3, 2024

Hi, this is the query I have used

 

Dick
Community Champion
October 3, 2024

Hi Carina,

 

 

Thank you for responding. Your query has only AND statements between the expressions. This means that the issues found would have to meet ALL the expressions.

so, issues in Project 10000 and with a duedate within 5 days, and have label Kontroll and have status done

There are no issues found, says your error message. I think that is indeed the case, because all those and statementts are a prerequisite in your query. 

So I would like you to put in words, the Jira-items you would like to find and have in the email that should be sent. It'll give us a clue how we need to adapt your filter to finding the correct Jira-issues.

 

Thank you for posting the filter query,

Dick

By voting for helpful posts and marking answers to your question, you're helping people with similar questions find a solution more quickly. Sharing is caring applies to knowledge as well :)

 

Query:

 

(project in (10000)) AND (duedate <= 5d and labels = "Kontroll" and status = "Done")

Dick
Community Champion
October 3, 2024

Hi Carina,

Could it be that one of your tickets does not have an assignee, by chance ?

Carina Gungner October 3, 2024

Hi, 

No there is only one issue in the list in this case, and it assigned to me

Dick
Community Champion
October 3, 2024

Hi Carina,

I think I'm missing something in the addressee field: 

{{#lookupIssues}}{{assignee.emailaddress}}{{/}}

 

it's where you tell Jira to get the assignee from the array of tickets!

Carina Gungner October 3, 2024

Hi,

 

That didn't help either, still get the same error

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events