Actually simple, but I can't get any further.
I'm trying to create an automation rule that when a ticket is created and the approver is set, creates a new ticket and transfers the approver from the old ticket to the reporter field. I have worked with several smart values that I have found but it just won't do it.
Could you please help me here?
1. {{approval}} not possible
2. {{approval.addedApprovers}} not possible
3. {{approval.approver}} not possible
4. {{issue.approvers.displayName}} not possible
Hi @Dimitrios Kouroumichakis ,
You can do it using smart values in the Additional fields section as follows:
{
"fields": {
"reporter": { "id": "{{triggerIssue.Approvers.accountId}}" }
}
}
For testing, I created the rule as follows:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dimitrios Kouroumichakis ,
You should be able to use any approvers field - whether system or custom one. If you would navigate to Settings > Issues > Custom fields and find the custom field you're using for selecting approver(s), check the field ID. Next, you can use that field ID to get the ID of user account once one is selected/set as approver.
Basically, you can use the following:
{{issue.customfield_ID}}
which will return user ID > this value can then be used to set the reporter in the newly created ticket.
Additionally, you can use trigger issue smart value to be sure system pulls the right data:
{{triggerIssue.customfield_ID}}
Note that this might get a bit trickier to configure if you have more than one user stored in the approvers field.
Hope this helps.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Tomislav Tobijas _Koios_
Super thanks for this hint here {{triggerIssue.customfield_ID}}
The {{issue.customfield_ID}} didn't work but never mind :D
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.