Forums

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

Workflow duration based automation

Rachel Soyode
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 1, 2023

I'm trying to create an automation to change the colour of tickets that have been in a column for an extended duration. 

i.e. in review code, if the ticket has been there for over a week then it's orange and over a sprint it's pink and more than 2 sprints it's dark red. 

I can't figure out where time based/workflow based automations sit in the automation tool. 

Any help would be greatly appreciated! Thanks 

1 answer

0 votes
Marc - Devoteam
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.
December 1, 2023

Hi @Rachel Soyode 

There are no time/workflow based actions in the automation tool.

You would need to use conditions, based on JQL statements.

example on a JQL:

status = "particular status" and status was "particular status" before startOfDay(-7)

This will give all issues in "particular status" now and also a week ago

Trudy Claspill
Community Champion
December 1, 2023

Adding to this, the above query would get you an issue that is currently in that status now, and was in that status more than 7 days ago, but it doesn't ensure that the issue stayed in that status for those 7 days.

If you want to ensure the status has not been changed for the past 7 days you would need to do this:

status = "particular status" and not status CHANGED after startOfDay(-7)

 

I'm not sure how to accomplish this requirement:

over a sprint it's pink and more than 2 sprints it's dark red. 

The CHANGED operator can help you figure if an issue status has remained unchanged over a period of time, but not over a series of sprints. You would have to know the dates associated with the current and last sprints, and it is quite challenging to get information for the sprints to which an issue has been assigned.

Suggest an answer

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

Atlassian Community Events