Forums

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

is there a way to iterate values from the list using the smart values?

Devarajan Mani
Contributor
April 3, 2025

Hi,

I need to iterate the name, date and time values from the below and update the respective custom fields in Jira cloud.

 

{accountId=712020:87072582-f63b-429d-8af6-c963148b3432, meaning=Approval, name=Karthikeyan Ponnusamy Jayachandran, status=Approved, title=Lead, date=Apr 3, 2025, time=8:21 PM, ts=2025-04-03T13:21:58Z}

Thanks in advance

2 answers

0 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.
April 3, 2025

Hi @Devarajan Mani 

How many records are you expecting for what you show: one-and-only-one, zero-to-many, etc.?

  • When there is one-and-only-one record, I recommend using text functions, such as match() with a regular expression, to extract the information: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
  • When are an unknown number of records, that list would need to be parsed / iterated first to extract the information.  And as you describe setting custom field values, that may not be able to both iterate issues and iterate the data.

After you clarify the scenario, that will help the community to offer better suggestions.

Kind regards,
Bill

0 votes
Kim Euker
Community Champion
April 3, 2025

Hi, yes you can.  

First off, when putting the data into your smart value, I would strip off the starting and ending
{ } leaving you with the value pairs.

Then using advanced branching, step through each of the value pairs like this.  Each time through the branch you will have a new pair.2025-04-03_09-37-32.png

Suggest an answer

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

Atlassian Community Events