Is it possible to limit a transition by a time of day

Is it possible to prevent someone from executing a transition in workflow based on a time limit?  I'd like to prevent the transition if it's, for example, after 12pm, but only if it's 12pm on the scheudled start date. My thoughts are to use a validator where the  might look something like "Start Time" < startOfDay(+11h), but the syntax is not allowed.

1 answer

Quick thought is you can do this via a Script Validator that validates the current time to allow the transition or not.


Another option which may be nicer for the users is to put the same logic into a scripted condition.  A condition hides the transition from the user when they look at the issue, so they can't use it.  A validator lets them start a transition, but pulls them up when they try to commit it. 

A validator has the advantage that you can tell them why they can't do something, rather than have them ask you "why can't i do X to the issue?", but the disadvantage that they can get stroppy if they enter all their data only to be told they can't do it.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

451 views 6 7
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you