Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,098
Community Members
 
Community Events
168
Community Groups

Jira automation - auto assign and then post comment to that auto assigned user

I have an automation that auto assigns a user during a transition (to the person who triggered the event) and then looks to make sure that an attachment was added before allowing the transition.  If this fails, I am @(assigned user) in the comments section of the ticket.  When this is triggered, Jira doesn't know who triggered the event yet and @(nobody).  Anyone know a way around this?

1 answer

1 accepted

1 vote
Answer accepted

Hello @Joshua Cumblidge 

You said you have automation to assign a user during a transition. Do you mean you have customized a workflow transition to include updating the Assignee, or do you mean you have an Automation Rule?

Can you show the details of the workflow transition or Automation Rule that is doing this work?

It's a Jira automation rule.

Jira Automation.jpg

try this

[~accountid:{{issue.assignee.accountId}}]

There needs to be context (issue) from which Assignee can be extracted. 

I get the same thing.

Jira Automation2.jpg

Try adding an action to Re-fetch Data after the action that Assigns the issue.

I used the Log Action in a rule to print out the Assignee after using the Assign Issue action. The Log Action printed no value. I added a Re-fetch action after the Assign action, and then the assignee info successfully printed.

Screen Shot 2022-09-20 at 1.21.19 PM.png

Like Bill Sheboy likes this

That worked! Thank you so much!!

You're welcome.

Please mark the answer as Accepted to help other community members find the posts that include solutions.

Suggest an answer

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

Atlassian Community Events