Validation script with date

Description

Hi,

could you help me with some scripting validation?
I want to block logging work after a certain date.
So if someone will choose period from e.g. 16 Apr to 30 Apr, but End date of ticket is on 24 Apr then it shouldn't be possible and some error should be shown like:
"you can only log work with max. date of 24 Apr"

Regards,
Jacek

Environment

None

Activity

Show:
Jacek Klimczak
April 16, 2020, 2:42 PM

OK, great. Maybe in this 4.1 for Jira 7 ?

Deniz Oğuz
April 17, 2020, 7:57 AM

Jira 7 version is also released But we are planning to stop Jira 7 support. Even the 7.13 version is becoming end of life at Nov 28, 2020.

Jacek Klimczak
July 14, 2020, 1:24 PM

I have script like below:

Validation doesn't work when using a period of time.
Is something wrong with this script?
I am using newest 4.4.5 version.

Jacek Klimczak
July 14, 2020, 1:28 PM

It works well only when selecting one day after end date or any forward date.

Deniz Oğuz
July 14, 2020, 10:11 PM

Hi Jacek,

I can confirm that, it doesn't work for periodic worklogs. We have fixed it and publish the new version soon.

Priority

Major

Assignee

Deniz Oğuz

Reporter

Jacek Klimczak

Affects versions

Fix versions

None

Labels

None

Source

None

Jira Version

Database Type/Version

MySQL 5.7.24

Browser Type/Version

Chrome
Configure