Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe

UI Text Box
sizemedium
typeinfo

Use case

Block a transition based on the days day of the week.


Configuration

UI Steps
UI Step

Jira expression*

Code Block
linenumberstrue
new Date().getDay() != 0

Issues will not be transitioned on Sundays

UI Text Box
typeinfo

The number 0 in the expression refers to the day of the week, being 0 Sunday; 1, Monday; 2 Tuesday and so forth until 6.

UI Step
UI Steps

Variations


UI Step

Jira expression*

Code Block
linenumberstrue
![0, 6].includes(new Date().getDay())

Issues will not be transitioned on weekends.

UI Step

Jira expression*

Code Block
linenumberstrue
new Date().getDay() % 2 == 0

Issues will only be transitioned on even days.




Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Use case description, Complexity
sortByTitle
cqllabel = "use-case" and label = "jira_expression" and space = currentSpace()


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

Page properties
hiddentrue
JWT feature

Workflow function

Jira expression condition

Jira expression validator

Parser functions
Use case description

Block transitions on weekends or any other day of the week.

This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.

Complexity

Status
colourGreen
titleBEGINNER



Page properties
hiddentrue

Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged