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
Community Members
Community Events
Community Groups

Only allow a status change if a set time has passed since the last status change



One of my stakeholders would like a condition set on some of the statutes on their workflow, ie can only move to status 3 if they have been in status 2 for a week, then only move to status 4 if been in status 3 for a day.

Is there anyway to add a condition in the workflow for this.  We have scriptrunner plugin

They would also like to set the due date at the same time, so they know when it can move to the next status

We are on Data Centre

2 answers

0 votes
John M Funk Community Leader Apr 01, 2022

Hey @Collette Gray  - Did you ever get this to work for you?

0 votes

Yes, a condition in the workflow is simple to add and write, edit the workflow, find the transition, hit the conditions list and add one.  Select scripted condition and you'll be able to edit the script.

A condition just needs to return a true or false to Jira (true = "allow the transition"), so there's not a lot of calculation needed.

See as an example of how to work with date fields

Thank you, I will give this a try

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,174 views 34 44
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