Cortex XSOAR: Add a Job: First Friday of the Month

Reply
Highlighted
L0 Member

Cortex XSOAR: Add a Job: First Friday of the Month

Hello all

We are using Cortex XSOAR Version Version 6.0.0; Build 79522 and having problems to generate a valid schedule in the Jobs.

I would like to add a Job, which runs on first Firday of the Month.

The Human View part has no Monthly recurring tasks.

The Cron View does not unterstand these settings:

 

0 21 ? * 6#1 -> the background turns red on "Update job"

00 21 1-7 * 5 -> the next Run will be on the 13th of November 2020

 

Can anyone solve this?

thanks

roger

 

 

Tags (4)
Highlighted
L0 Member

Hi Roger!

Yes, that's quite a problem!  It looks like Cron doesn't have a good way to identify specifically which week it's running in.  The recommendation would be to run the job weekly but have the first section of your playbook determine if it's within the first 7 days.  You can do that with the GetTime task with the dateFormat = Day.  Something like the following will accomplish that for you:

DougCouch_0-1605660341914.png

I hope that helps!

Thanks!

-Doug

Highlighted
L0 Member

As a quick follow up my task is slightly misnamed and should have been "Day of Month"!

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!