How to call the account ID in an automation for the assignee

Jaina Mistry April 15, 2024

I've got an automation running that is triggered when a new issue is assigned to a user. 

In the next step, I'm using the following JQL to lookup issues assigned to that user:

due = {{triggerIssue.duedate}} AND assignee = {{triggerIssue.assignee.accountId}} AND (status != "Cancelled" AND status != "Completed")

However, "triggerIssue.assignee.accountId" is coming up empty, so something's not quite right there. 

How do I get to the account ID of the assignee that triggered the automation? 

2 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2024

Try {{triggerIssue.assignee}} instead, all user fields will return the Atlassian Id when you use its smart value.

Jaina Mistry April 24, 2024

Thank you @Mikael SandbergThis worked perfectly! 

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.
April 16, 2024

Hi @Jaina Mistry 

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 is this rule in: company-managed or team-managed?  You may find that information at the bottom-left side of the page's expanding area.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events