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

Collette Gray August 26, 2021

Hi,

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 Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 1, 2022

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

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 26, 2021

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 https://library.adaptavist.com/entity/calculate-the-working-days-between-two-dates as an example of how to work with date fields

Collette Gray August 31, 2021

Thank you, I will give this a try

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5
TAGS
AUG Leaders

Atlassian Community Events