Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,463
Community Members
 
Community Events
184
Community Groups

Create an alert automation when ticket stuck in a column

Hello, I would like to create an automation rule with 2 levels of alert

 

  1. When a ticket stay more than 2 days on specific states (Blocked and code review) without any modification then the assignee is tagged on the comment section with a message 
  2. If tickets stay more than 4 days into a column the list is sent into a slack channel

 

I tried to do it directly on the automation section but it seems that there's no action or trigger regarding time. Should use a JQL query? If yes, how to compose and integrate it into my board.

 

Thanks by advance

1 answer

1 accepted

0 votes
Answer accepted
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.
Nov 30, 2021 • edited

Hi @Sandra Kabamba 

You may do what you ask with a scheduled trigger (perhaps checking daily) and a JQL statement to find the relevant issues.  For example:

project = myProject AND NOT status CHANGED AFTER -2d AND status IN ("Blocked", "Code Review")

 

Kind regards,
Bill

Thanks @Bill Sheboy  the query works great! 

But I cannot exclude some labels or include some labels

project = myproject AND NOT status CHANGED AFTER -2d AND status IN ("Blocked", "In Review") AND labels ("iOS","Android","Back")

 

I've got an error message saying 

Error in the JQL query: an operator is anticipated but '(' is mentioned instead. Valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'. (line 1, character 122)

 

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.
Nov 30, 2021

Please try instead adding:

AND labels IN ("iOS", "Android", "Back")
Like Sandra Kabamba likes this

Yes, it's working. Thanks a  lot @Bill Sheboy 

Like Bill Sheboy likes this
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.
Dec 01, 2021

I am glad to learn that is working.  Please consider marking this question as answered; that will help others with a similar need in the future find solutions faster.  Thanks!

Like Sandra Kabamba likes this

Hi @Bill Sheboy 

I was able to set up a scheduled trigger, using your JQL as a reference. However, the action performed did not return the related results. 

For example, when tickets are in Code Review for > 3 days, it sends an email to me and let me know the results of that query. 

So the query works (returned 3 tickets), sending the email works, but the email has no content in it to let me know which ticket has been sitting in Code Review for > 3 days. 

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.
Mar 18, 2023

Hi @Joey Huang -- Welcome to the Atlassian Community!

FYI for older posts like this one: it can help to create a new question and link back to the older threads.  Otherwise only the people following this one will see it.  

Back to your question...Would you please post images of your complete rule and the audit log details showing the execution?  Those may provide context for what you are observing.  Thanks!

Kind regards,
Bill

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events