Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add multiple approvers with emails from custom field on jira automation

jesus_gutierrez
December 4, 2025

Hello everyone,

First of all, thanks for taking the time to read this.

I have an automation where i search some assets that have Email as Attribute and some objects can have more than 1 email but separated by a comma.

My variable {{lookupObjects.Mail}} returns the emails like this:
email1@test.com, email2@test.com, email3@test.com

how can I iterate over those emails and add them as approvers? on the same issue

 

i tried multiple things but still cannot make it

1 answer

0 votes
Marc -Devoteam-
Community Champion
December 5, 2025

Hi @jesus_gutierrez 

Welcome to the community.

You should advanced branch over the variable and in the branch do an advanced edit

The advanced branch will turn into a smart value to be used in the branch*

Then an edit action and then in the advanced option:

{
"update" : {
"Approvers" : [
{
"add" : { "id" : "{{smart value from advanced branch*}}" }
      }
    ]
  }
}

jesus_gutierrez
December 5, 2025

Hello Marc,


First, thanks for taking the time for reading and answering!

I have tried this, but it gives me this error:


"(Specify a valid value for customfield_10003 (customfield_10003))"

You can see my rule in the images.
The customfield_19348 is named "approversMail"
I copy the value from {{lookupObjects.Mail}} to that customfield in a subtask when creating it with info from their parent.branch.pngcustomfield.pngrule.png

On the advanced editing, should I use email or mail insead of "id"?

Marc -Devoteam-
Community Champion
December 8, 2025

Hi @jesus_gutierrez 

Then within the branch a web request action is required.

To create a request to fetch the accountID and set the ID in advanced based on the {{webResponse.body.id}}

jesus_gutierrez
December 8, 2025

Thanks, im still not sure how the URL would be.

I tried several but none worked

 

/rest/api/3/user/search?query={{Mail}}

/rest/api/3/user?accountId={{Mail}}

/rest/api/3/user?emailAddress={{Mail}}

Marc -Devoteam-
Community Champion
December 9, 2025

Hi @jesus_gutierrez 

Use rest/api/3/user/search?query={{Mail.urlEncode}}

jesus_gutierrez
December 9, 2025

thanks Marc, I really appreciate your follow ups.

However, I tried and had no success :( log1.pngrule1.1.pngrule1.2.png

Seems the body is empty, not sure why

Marc -Devoteam-
Community Champion
December 10, 2025

Hi @jesus_gutierrez 

In the edit action, set {{webResponse.body.accountId}}

OR create a variable before editing.

variable smart value: {{webResponse.body.accountId}}

The edit the issue, using the variable

jesus_gutierrez
December 10, 2025

Hello Marc, thanks again for the follow up.

I tried what you said and had no success :/ log2.pngrule2.png

Seems that variable is not working, im not sure why

Marc -Devoteam-
Community Champion
December 10, 2025

Hi @jesus_gutierrez 

Create a varible based on the smart value {{webResponse.body.accountId}}

Then a log action to show the value of the variable.

jesus_gutierrez
December 10, 2025

Hi Marc, thanks a lot for your answer.

Log shows empty still, dont know why :/ log3.pngrule3.png

Suggest an answer

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

Atlassian Community Events