Forums

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

Insight Automation rule not triggering when using 'Scheduled event'

Philipp Eichinger September 28, 2020

Hi,

I am trying to write a simple automation rule in Insight, to notify someone (via a Jira Issue), when a 'Date'-attribute is within the next week (iql: "Expiry Date" < now(1w)).

When I use 'Scheduled event' with the configuration 'objectTypeId = 19' and one of the following cron expressions, no ticket is getting created.

cron expressions:

  • 0 0 * * *
  • * * * * *
  • * * * * * *

However, when I use 'Object updated', leave the rest the same and manually change a 'text'-attribute it works.

I also tested the iql 'objectTypeId = 19 and "Expiry Date" < now(1w)' via the rest-API and got a correct result.

Maybe someone has an idea what I am doing wrong?

Thanks in advance,

Philipp

 

Screenshots of my tests:

cron_at_0000.pngcron_every_minute.pngcron_every_second.pngThis one works:on_update.png

2 answers

0 votes
Fabian Wimberger
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2020

Dear @Marco Brundel

I just tried to verify the same but it really seems like the cron expressions do not work in our cloud deployment. We tried several expressions out of the documentation:

* * * * * - did not work

*/2 * * * * - did not work

0 0 * * * - did not work


However, changing the trigger to "Object updated" + changing the object, immediately results in the desired task to be created inside one of our KANBAN boards.

In short:

image.png

works.

image.pngdoes not work.



We would appreciate your help.


Best regards,
Fabian Wimberger

Add.: The created task names were changed inbetween tests to not result in overwritten/ignored tasks.

0 votes
Marco Brundel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 28, 2020

Hi @Philipp Eichinger ,

 

I think objectid belongs in the condition and not in the "when".

See also https://documentation.mindville.com/display/ICV84/Insight+Automation#InsightAutomation-Scheduledevents

 

"when and how often the provided Condition will try to match Insight objects"

 

Regards, Marco

Philipp Eichinger September 28, 2020

Hi @Marco Brundel

I agree, that it would make more sense in the if part, however the condition field in the when part can't be empty and I only want to check objects of the specified type.

So I think it should at least work the way I describe it in my question.

 

As for the second part of your answer, I'm not sure what you are replying to.

If it is regarding the cron expressions, as far as I am aware the ones I use mean:

  • 0 0 * * * -> every day at midnight
  • * * * * * -> every minute
  • * * * * * * -> every second

Which would be the intended times.

 

Regards,

Philipp

Marco Brundel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2020

Hi,

I think you should indicate in the "when" how often you want the rule to be executed. For example once a day.

In the "IF" you then note which items must be checked daily.

Regards, Marco

Philipp Eichinger October 7, 2020

Hi,

I do think, that is what I am doing.once_a_day_marked.png

The other of my tests are exactly the same (apart from different cron-expressions).

 

Regards, Philipp

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events