Forums

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

Erro no crontab disparando varios tickets

Governança de TI July 11, 2023

Estou fazendo automaçoes de abertura de  chamados, porém ao configurar o cron ele está disparando varios chamados ao invés de somente 1 chamado 

Estou usando a seguinte linha: 30 10 * * 5/2 ? 

Minha intenção é que o chamado seja aberto em sextas feiras alternadas

1 answer

0 votes
Trudy Claspill
Community Champion
July 11, 2023

Onde você está tentando usar essa expressão cron no Jira. Você está tentando usá-lo em uma regra de automação ou em outro lugar?

Você revisou as informações de expressão cron disponíveis aqui?

https://support.atlassian.com/jira-software-cloud/docs/manage-filters/

Qual é a sua intenção para esta parte?

30 10

Você pretende que o cron seja executado às 10h30? Se assim for, você está perdendo um elemento. Os segundos devem ser o primeiro elemento. Como está escrito atualmente, a regra dispararia 10 minutos e 30 segundos após a hora, a cada hora. E sem esse elemento o resto está nas posições erradas.

Se você estiver tentando usar a expressão cron no acionador Agendamento de uma regra de automação, na verdade não precisa descobrir a expressão cron. Você pode usar a interface de programação básica para criar a programação para execução a cada duas sextas-feiras.

Screen Shot 2023-07-11 at 1.56.22 PM.png

---

Where are you trying to use this cron expression within Jira. Are you trying to use it in an Automation rule or somewhere else?

Have you reviewed the cron expression information available here?

https://support.atlassian.com/jira-software-cloud/docs/manage-filters/

What is your intention for this part?

30 10

Are you intending for the cron to execute at 10:30 a.m.? If so you are missing an element. Seconds should be the first element. As it is currently written the rule would fire at 10 minutes and 30 seconds past the hour, every hour. And without that element the rest are in the wrong positions.

If you are trying to use the cron expression in the Schedule trigger of an Automation rule, you don't actually need to figure out the cron expression. You can use the Basic schedule interface to create the schedule to run every other Friday.

 

 

Error in crontab firing multiple tickets

I'm doing call opening automations, but when configuring cron it is triggering several calls instead of just 1 call

I'm using the following line: 30 10 * * 5/2 ?

My intention is for the call to be opened on alternate Fridays

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events