Hi guys,
Help please with some pointers on how to get an automation to not run more than once per ticket?
Our particular case: when, from the Service Desk ticket we create the very first Jira issue by using "create linked issue" button, an automation performing some actions has to run - which it does, all good there.
But we only need it to run once per Service Desk ticket.
This means that if we create another Jira issue by pressing "create linked issue", from the same Service Desk ticket, nothing further should happen.
I tried using IF rules with these components, with and without branches, but I can get the automation to stop working.
What am I missing?
Thank you!
Hello @Alexandra Guna
Probably many ways to do this but one way is:
Use the if -> "smart values condition" and check if:
{{#=}}{{issuelinks.inwardIssue.size}} + {{issuelinks.outwardIssue.size}}{{/}}
EQUALS
0
If so, you continue your steps, else it will exit the If condition.
Please see screenshot for example. Its DC screen but cloud should be same.
Hope it helps. Thanks!
Hi @Kalyan Sattaluri ,
I tried your solution, but for the Service Desk ticket I can't even manage to get a comment published - so the formula doesn't work.
I'm starting to think that it doesn't work perhaps because I'm trying to make changes in both a Jira project and in a Service Management one via one single rule?
Here's the configuration and the logs, perhaps you can share some more insights?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Alexandra Guna
The If condition should be right after the trigger, not inside the branch.
Also, I am not sure why you need a branch.
Can you clarify what is your actual requirement? You mentioned..
"from the Service Desk ticket we create the very first Jira issue by using "create linked issue" button, an automation performing some actions has to run - which it does, all good there. But we only need it to run once per Service Desk ticket."
Are you sharing the screenshot of above ask?
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.