Hello! I am cloning a ticket into the same project space and would like to write automation based on the cloned fields in the cloned ticket.
An example of the automation I've been testing is: if the summary of a ticket contains "abc xyz" (automating the name of the cloned ticket as part of the cloning automation) and custom field 1 is not empty, then add request participants.
So far all test have been unsuccessful. Is there a specific way to set up automation when it is based on inputs in a cloned ticket?
Any and all guidance and suggestions are appreciated. Thank you!
-Justin
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
Do you have one or multiple rules in this scenario?
Assuming you have one rule, when your rule is cloning the work item, you could either immediately branch to Most Recently Created Work Item to make changes...or, when using the clone action, make the fields more dynamic using a conditional JSON expression.
Kind regards,
Bill
Thanks for your response, Bill. I have two rules, the first to clone, the second to action on the clone.
The first screenshot is the rule which clones the ticket. All elements here happen successfully in multiple tests.
The second screenshot is the subsequent rule basing automation on the cloned ticket. I've asked it to see if all of certain fields match, and if they do, to add request participants. This has consistently failed.
I've added a third screenshot showing more detail of the If all match rule, and the audit log showing "Success" though no participants were added.
(I've turned off the rules when not actively testing.)
In the first rule I am not able to select "Request Type" in order to update that in the clone; I'd thought basing the second rule off of a specific request type might be clearer.
I will try your suggestion of keeping it in one rule with the Most Recently Created Work Item branch. Will you let me know if any other issues are clearly identifiable in the below?
Thank you!
Justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for those images, @Justin Goodemoot
In your second rule named People Team "Completed Change Letter" Clone + Test:
Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Allowing rule to be triggered by others must have been the thing - it works now! Thank you so much! You made my day.
Justin
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.