Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Help with a workaround for automation

Hey everyone,

 I used automation to add a comment after 'x' amount of days but there is a bug within Jira that wont run the rule unless I run the rule as myself and not the user. If I run the rule as myself(admin) I get all the notification and replies by customers which is not convenient and my name appears on the comments


This is what it looks like


This is the error



I am trying to find a workaround and to use 'Automation for Jira' instead. I've come up with a rule that is scheduled to run everyday. I only want the rule to execute if the status open has not been changed for 5 days.

I am only able to come up with the JQL below. I don't seem to be able to use '>=' nor am I able to figure out what else i can use as if I use the JQL query below it will still execute even if its in days 1, 2, 3, 4 and 5.


status in (open) AND NOT status changed AFTER -5d


Can you help me figure out a query so it only executes on day 5?


Thank you



2 answers

1 vote
John Funk Community Leader Jun 01, 2020

Hi @Harry Bob  - Is it just one particular status that you need the notification for?

What about: 

project = ABC and status = "Open" and status changed to "Open" before startOfDay(-5)

@John Funk


I'll give this a shot. Thanks!

Hi @John Funk 


project = ABC and status = "Open" and status changed to "Open" before startOfDay(-5)


Does the above JQL mean status in 'Open' for the last 5 days? 

It means it was moved to Open more than 5 days ago and is still in Open. Is that what you were looking for?

Like Sebastian Mühleis likes this

Hey @John Funk 


Ohh I think this is going to work! If I use this JQL using automation I can create a rule so that it close off tickets that has been in 'Open' status for more than 5 days?


On a side not I thought Jira doesn't count the amount of time a status stays in a status. Is that correct?

Hey @John Funk 


Would this also be the same thing?


project = ABC and status = "Open" and NOT status changed after 5d
John Funk Community Leader Jun 03, 2020

That did not yield the same results for me. It include issues that just moved to Open yesterday. 

Hi @John Funk


I used your JQL for my automation rule to close off issues in the 'Waiting for customer' status more than 7 days.


For a few it executed for ones that only around 3 days? 


Would you know why?

This is what I have 


Department in ("Platform Support") AND status in ("Waiting for customer") AND status changed to "Waiting for customer" BEFORE startOfDay(-7d)



Did you run the query in the advanced filter search first to see what it would show to verify?

I see no reason why it would have picked that one up.  :-(

John Funk Community Leader Jun 05, 2020

Was the issue moved to Waiting for customer prior to the time 3 days ago? If so, it is probably picking up the original date. 

Hi @John Funk 


Ah so Jira doesnt know to use the latest status as source of truth and is also picking up statuses in the past as well?

John Funk Community Leader Jun 09, 2020

Right. It keeps a history, but the only value showing on the screen is the latest date for when it moved into that status. You don't have access to the history using JQL nor are you able to tell it which date to use.  :-(

You could create a custom field that is date/time stamped when the card moves into that field (be sure to replace the current value). Then use the custom field in your rule above.  :-)

Hey @John Funk 


Please correct me if Im not mistaken. The JQL query you provided me only works if the status hasn't been changed for 5 days or more. 

If the status has changed in between those 5 days and happens to be in the 'Open status when my automation rule is run it will still execute yeah?

John Funk Community Leader Jun 10, 2020

That's correct. The way around that is probably with the changed to like you had in the other query above. Did that work for you? If not, what was not correct about it?

Hello @Harry Bob ,

at first glance it seems to me as if you have two options:

1. You can make use of workflows (or rather the transition functions in your workflows). To me it sounds as if really any of the transition functions could help you. You find a great webinar here:

Since I did this course (and some additional courses) I find myself to be really well-suited to generate even complex workflows :-)

2. Or you can implement some automation rules, as you assumed/suggested yourself.

Here you find an extremely good webinar, in which you get to know automation, very practical examples and also a playground where to test them (without using your automation executions - if you have limitations):

In this webinar you will also get used to the rule playground. I was curious and played a little and it seems as if your wish can easily be granted by an automation rule (make sure that you have enough executions - if not definitely use the post function described in 1.; and definitely use the rule playground to test your automation rules, as you don't waste any executions there)


If you need further help let me know - I was fighting your fight roughly two months ago, but am a happy man by now ;-)

And I'm not sure which option is the better one for you. You might have to test it - or maybe some wiser member has deeper knowledge of this topic and can help.

Thanks @Sebastian Mühleis


I watched the webinar and it was somewhat helpful. Does seem quite powerful in what it can do but I don't think its able to do what I want :(


Just found out that there is no counter on the statuses


So I'm unable to send out notifications after x amount of time in a status which is frustrating. I appreciate your assistance those webinars were at least interesting to watch :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

314 views 9 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you