Add the approver in the “reporter” field

Dimitrios Kouroumichakis
Contributor
February 24, 2025

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 


24-02-2025_10-06-45.jpg

2 answers

2 accepted

4 votes
Answer accepted
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2025

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:

  1. WHEN:  Field value changed --> Select Approver
  2. THEN:  Create issue 
    select Same project and required issue type
  3. After selecting the Summary in the side window opened, expand  More Options and inside the Additional fields section, add the below 

    {
    "fields": {
    "reporter": { "id": "{{triggerIssue.Approvers.accountId}}" }
    }
    }

 

 

Dimitrios Kouroumichakis
Contributor
February 24, 2025

@Rilwan Ahmed 

Thank you too, because it also helped me to succeed!

Like Rilwan Ahmed likes this
1 vote
Answer accepted
Tomislav Tobijas _Koios_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2025

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.

2025-02-24_11-43-17.png

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

Dimitrios Kouroumichakis
Contributor
February 24, 2025

@Tomislav Tobijas _Koios_ 

Super thanks for this hint here {{triggerIssue.customfield_ID}}
The {{issue.customfield_ID}} didn't work but never mind :D

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events