Hello,
I created an automation that should add the parent ticket fixVersion to a newly created ticket.
This is my edit rule:
When creating a ticket, and running the automation, I get this error:
Any tips what I could do?
Thanks!
That worked, thanks!!
If a parent has multiple fixVersions, is it possible to add only specific fixVersions to the children, like for example all parent fixVersions that start with Test?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That would be a more complicated rule requiring you to figure out if there were Versions in the parent's Fix Version field that match your criteria, getting their full names, and then adding them to the child issue.
Adding them to the child issue would require Advanced Editing. An example of setting multiple values in the Fix Versions field can be found here:
https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Fix-Versions
I think I have worked it out:
I've added some Log actions to log information to the Audit Log for the rule execution. You can keep those or remove them.
1. Use a For Each Smart Value branch to iterate through the list of Fix Version values in the parent issue.
2. Check if the current value from the list starts with the relevant text.
3. Edit the issue to add that value to the Fix Versions field. In this case we have not changed to focus of the rule to any other issue (i.e. the parent) so the Edit action will operate against the issue that triggered the 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.
Is it possible to do the same for when creating a new issue without parent first, and then when "manually" adding this new issue to a parent epic, to then run this rule as well to the newly added ticket to the epic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, but the trigger would be different. You would use the Field Value Changed trigger to monitor the Parent field for changes.
And you need to consider which scenarios you want to handle:
1. Is this only when an issue that has no current parent Epic is added to an Epic?
2. Or do you want to handle a situation where an issue is moved from one Epic to another?
2.a. In that case do you want to clear the Fix versions from the child issue and start fresh with the new parent epic? Or just keep adding fix versions to the child issue?
3. What do you want to do, if anything, if an issue is removed from an Epic but not assigned to another Epic?
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.