Hello,
This is my first automation rule triggered on a status change. If the status changes to Ready for PI event I want 3 sub tasks to be created.
This is all working fine until I try and add conditions so that the rule only runs once.
I have tried adding a comment saying "3 sub tasks added by automation" and searching the Issue !~ "3 sub tasks added by automation" in a branch after the status check
I tried setting an entity property and searching for that beforehand
If there is a straightforward method I am missing please advise, help appreciated :)
Hi @Becky McGrattan ,
For status changes you are better of to use the trigger "Issue transitioned".
With this trigger you can specify you 'To status'. So it will only trigger when an issue will go to this status. In the example below I used 'In progress'.
Note that if you can revisit the status via the workflow another 3 subtasks will be created, so you might want to use a related issue condition, like below.
This will prevent the creation of new sub-tasks if they are already present.
Apologies for late reply, I think the first part will definitely work.
We will create a manual Tech design sub task before the Ready for PI event, can I run the check for specific sub tasks?
Thank you for your answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I sussed it thank you:
Excluded titles:
summary ~ "title1" OR summary ~ "title2" OR summary ~ "title3"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Becky McGrattan
I can suggest you to create a numeric custom field that you will add in hidden fields on your issues types.
Like that you can use it like a counter in your rule. You just have to add a condition "If counter is empty"...
And add an action item to set up the counter with a value.
With this configuration each ticket can trigger the rule only one time and if you need to retrigger the rule, you ust have to clean up the field.
Regards,
JM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Becky McGrattan
In trigger you can select from and to statuses, so, you can limit that only needed statuses will trigger rule.
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.