I'm building an automation that creates a new ticket based on ticket activity. I'd like to copy the labels from the trigger issue and also add a new label to the newly created one.
With using the Add Labels from Trigger issue (by selecting the Copy -> select Add to existing values):
and trying to set the labels in the Additional fields section:
I'm getting the following error:
Field 'labels' cannot appear in both 'fields' and 'update'.
So to sum up: my goal is to create a new ticket based on ticket update activity and copy the existing labels and also add a new label to the new ticket.
Do you know how to do it?
Hi,
Don't know if you've tried splitting up the action?
So first an action in the rule to copy the labels, then in the same rule an action where you put in the additional fields?
Hope this helps!
Jeroen
Can I split the Create issue to two actions? Like the first would create the ticket and the second would update the newly created one?
How do I refer to the newly created ticket in the second action?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is how you could do this using the Branch in automation:
The first action Creates the issue, copying the labels from the trigger, then the Branch is set on all Created issues in this rule, so whatever you put under there is going to happen on the newly created issue.
There I put another Edit Issue action where you can just provide the new label to be added:
Works on this end, hope it helps you!
Regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jeroen,
This is exactly what was needed. I missed the Branch functionality, but now it works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just realized that using branch is not even needed, using the function Copy from trigger issue when defining the Labels lets you add additional values:
Anyway, thanks for hinting the Branch functionality!
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.
You can use the "Add Labels from Trigger Issue" action to copy the labels from the trigger issue and then use the "Set Field Value" action to add a new label to the newly created ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Riley,
I've tried this, but simply using the Edit issue will update the trigger issue, not the newly created one. Also, if you try to set i in the json section, that doesn't work, throws an error.
See Jeroen's solution on using the Branch functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.