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

Set a date on a given day of the week every two weeks. An example would be setting an appointment on the second and fourth Thursday of the month skipping the first and the third Thursday.


Image ModifiedConfiguration

UI Steps


UI Step

Add the Update or copy field values post function to the transition of your choice.


UI Step

Target issue

Choose Current issue


UI Step

Fields

UI Steps


UI Step

Field

Choose a Date Picker field, as for instance the Due date field.


UI Step

Value

Choose Set field value manually


UI Step

Expression

Code Block
languagebash
linenumberstrue
modulus(weekOfTheYear({00057}, {MONDAY}, 7, LOCAL),2)=0 ? 
nextDayOfTheWeek(datePart({00057}, LOCAL), {THURSDAY}, LOCAL) : 	
addDays(nextDayOfTheWeek(datePart({00057}, LOCAL), {THURSDAY}, LOCAL), 7, LOCAL) 

The next appointment will be set next Thursday if the week of the month is even and a week later if it is uneven.

UI Text Box
typetip

If you need to set the appointment on another day of the week, change {THURSDAY} for the field code corresponding to the day of the week of your choice.

If you need to change the order of the weeks in which the appointment is set (even and uneven weeks), change the number 0 in the expression for 1.






Image ModifiedRelated use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel in ("use-case-workflow","parser_func_adddays","parser_func_nextdayoftheweek","parser_func_modulus","parser_func_weekoftheyear","parser_func_datepart") and ancestor = "27067093"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue




Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
colourGreen
titletododone

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


...