Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Date automatically set

Käthe Crautwickel April 18, 2023

Dear all,
my name is Ed and I'm new here. I'm working with Jira since 2 Weeks and I have the necessity to set an Target End date automatically if the status changes to OPEN

1. if the calendar week is not eventhen set Target End to next Thuresday else set Target End to Thursday one week later than next week.

Possible???

3 answers

1 accepted

0 votes
Answer accepted
Käthe Crautwickel April 20, 2023

If I'm right Jira 9.4.3 and Jira Server

The problem is solved. I set the date in each case to now() plus 10 Business days.

0 votes
Käthe Crautwickel May 3, 2023

Sorry, I'm back. The problem is not realy solved.
First I decribe what I want and then my solution approch.
what I need is:is the actual calendar week even (2,4,6,8) or odd (1,3,5,7) and the actual day of the week (MON, FRI)

In case that it is even and the calendar day is not FRI I want to set due date to THU of next week otherwise I want to sent due date to THU of this week

If

{{now.weekofyear()%2 == 0}} and {{ dayofweek(current date()).==.(“FRI”}}

then

{{now.withNextDayOfWeek("THU").jiradate()}}

Else

{{now.with nextdayofweek(“SUN”).plusdays(1).withnextdayofweek(“THU”).jiradate()}}

Trudy Claspill
Community Champion
May 4, 2023

How exactly is that not working? Provide examples of the dates used in each step and the results.

Käthe Crautwickel May 4, 2023

Trudy,
thanks for your answer. The error is something like this:  "Error in Condition, wrong expression.Else executed".

I beleve that the expression dayoftheweek doesn't exists. Today I'm out of the office .

 

Edgar

Trudy Claspill
Community Champion
May 5, 2023

Can you show us screen images that show the details of each of those steps in the Automation Rule?

Käthe Crautwickel May 17, 2023

Unfortunately not because I'm not a Jira Admin and I don
t have the permission. The error was shown during an Admin has created the rule. I have to wait until the Admin will be available the reproduce the error

0 votes
Trudy Claspill
Community Champion
April 18, 2023

Hello @Käthe Crautwickel 

Welcome to the Atlassian community!

Are you working with Jira Cloud or Jira Server/Data Center?

If your Jira URL is https://<something>.atlassian.net then you are working with Jira Cloud.

If you are working with Jira Server or Jira Data Center, what version are you using? That information will show at the bottom of most screens.

What do you mean by the calendar week being "even"?

Käthe Crautwickel April 18, 2023

even =cw  2 4 6 8 10
odd = cw 1 3 5 7 9

Trudy Claspill
Community Champion
April 19, 2023

Do you mean the first, seconds, third, etc. calendar week of the year?

Can you provide answers for the other questions I asked also, please?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events