Page 1 of 1

[INFO REQ] Gantt/ResourceHistogram Availability

Posted: Fri Jan 21, 2022 6:42 pm
by quandarycg

Our goal is to be able to set a resource's availability years out by week per month. Currently we have accomplished this by this availability interval:

{
    "recurrentStartDate": "every weekday at 6:00 on the 15th through 20th day of March in 2021",
    "recurrentEndDate": "every weekday at 22:00 on the 15th through 20th day of March in 2021",
    "isWorking": false
}

This allows us to use our 'weekly availability' records to create one interval per record to schedule that given week. Only issue we have is:

What if the week starts in March and ends in April?
What would be the syntax to accomplish this?
Is this possible?


Re: [INFO REQ] Gantt/ResourceHistogram Availability

Posted: Mon Jan 24, 2022 9:18 am
by alex.l

Could you please describe what do you want to achieve in more words?

Doesn't the every weekday at 22:00 on the 23rd day of March through 2nd day of April do the job?

You can also use the number of week instead of exact day. Here is example how to manage recurrence with 2 weeks repeat, it uses the number of week of the month:

                "intervals"                : [
                    {
                        "recurrentStartDate" : "every 2 week on Wed at 00:00",
                        "recurrentEndDate"   : "every 2 week on Thu at 00:00",
                        "isWorking"          : false
                    },
                    {
                        "recurrentStartDate" : "every 2 week starting on the 2nd week on Tue at 00:00",
                        "recurrentEndDate"   : "every 2 week starting on the 2nd week on Fri at 00:00",
                        "isWorking"          : false
                    }
                ]


Re: [INFO REQ] Gantt/ResourceHistogram Availability

Posted: Mon Jan 24, 2022 9:46 am
by alex.l

Here is a better example how to do that:

            "recurrentStartDate" : "every weekday at 6:00 after 2021-03-30T00:00:00 before 2021-04-15T00:00:00",
            "recurrentEndDate"   : "every weekday at 22:00 after 2021-03-30T00:00:00 before 2021-04-15T00:00:00",

Re: [INFO REQ] Gantt/ResourceHistogram Availability

Posted: Mon Jan 24, 2022 6:53 pm
by quandarycg

Thank you!


Re: [INFO REQ] Gantt/ResourceHistogram Availability

Posted: Mon Jan 24, 2022 6:59 pm
by quandarycg

Is the 'after' or 'before' inclusive? Example After 01/24/2022 ( including the day of after the 24)


Re: [INFO REQ] Gantt/ResourceHistogram Availability

Posted: Tue Jan 25, 2022 10:32 am
by alex.l

after 2021-03-30T00:00:00 included all time after that moment of time. So it starts in the beginning of that day.
before 2021-04-15T00:00:00 includes all time before that moment of time. So it finishes in the beginning of that day.

You can easily try it in your project and see how it works.


Re: [INFO REQ] Gantt/ResourceHistogram Availability

Posted: Tue Feb 01, 2022 3:31 pm
by quandarycg

Wonderful! this helped us wrap up this issue