The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

perform an action on a variable

Jelani Walton
Contributor
April 20, 2023

Hello, I need some help with an automation I'm working on. The goal is for the automation to identify the oldest issue in a JQL search and assign that issue to a team of agents in round robin. So far Ive gotten to the point of identifying the oldest issue and created a variable for it. How do I tell the automation to perform an action where the variable issue is now the target of the assigning?

Side note: I wanted to use the Scheduled trigger to kick off this automation, but it tries to execute the action on every ticket in the search. I only want the oldest ticket to be affected. Any recommendations? I was thinking about the 'SLA Threshold breached' option and set it to a time well before breaching so the automation only looks at that one ticket, but i saw a warning that it fails sometimes. 

Thanks for any help
Screenshot 2023-04-20 125600.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Trudy P Claspill
Community Champion
April 20, 2023

Hello @Jelani Walton 

You can use a For Branch > Related Issues > JQL step to look up the one issue on which you want to operate. The JQL for that would be

issue = {{firstIssueKey}}

Or you could skip using the variable and use this JQL

issue = {{lookupIssues.first.key}}

Then within that branch you could operate on  that issue.

---

You can still use a Schedule trigger. Just don't put a JQL into the trigger itself. Continue to use the Lookup Issues action after the trigger to get to the issue you want.

Jelani Walton
Contributor
April 21, 2023

This worked! Thank you SO MUCH

Like • Trudy P Claspill likes this
TAGS
AUG Leaders

Atlassian Community Events