Forums

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

Request participants using object attributes

Fabio Cerullo May 23, 2025

Hi

I'm trying to populate a list of Requested participants using an automation via JSON.

Here is the JSON:

{
"requestParticipants": [{{#application."System Admins"}}"{{accountId}}"{{^last}},{{/}}{{/}}]
}

The field "application" is a variable that contains all the objects based on a search criteria. There is an attribute called "System Admins" that contains all the system administrators that need to be added to "Requested participants"

The log output of the JSON I believes comes out ok:

{ "requestParticipants": ["712020:91454231-274b-495b-95b1-0a18dc7fa495","63bdd85c0913ada386aa9b13","712020:12bae45b-926b-47e6-a992-fe85b904c3b0"] }

But the "Request Participants" field is still blank.

Any pointers are appreciated.

Thanks
Fabio

1 answer

2 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2025

Hi @Fabio Cerullo 

For a question like this, context is important for the community to help.  Please post the following:

  • what type of project is this: company-managed, team-managed, etc.
  • an image of your complete automation rule in a single image for continuity
  • images of any relevant actions / conditions / branches
  • an image of the audit log details showing the rule execution
  • explain what is not working as expected and why you believe that to be the case

Until we see those...

 

You note using a variable.  If that is a Created Variable, those are text and have no structure to process as a list, JSON, etc.

If the value is just a list, you could try using the split() function before iterating it.

If the value is JSON as text, you could try converting it to JSON before accessing the attributes with the jsonStringToObject() function, and then iterate.

 

Kind regards,
Bill

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