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:
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:
This one works:
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:
works.does 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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Which would be the intended times.
Regards,
Philipp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I do think, that is what I am doing.
The other of my tests are exactly the same (apart from different cron-expressions).
Regards, Philipp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.